pmatrix is a cmatrix clone written in Python. It creates the falling text display.
The easiest and best way to install pmatrix is using pip.
- If you don't have pip installed, use your package manager to install the package python-pip. For Debian based systems
the command to use would be
$ sudo apt-get install python-pip
. - Next, use pip to install pmatrix.
$ pip install pmatrix
Installing pmatrix is easy. It is worth noting that this package will only work on *nix systems. This is because the Python curses module responsible for terminal control is currently only supported on *nix systems. With that in mind, if you're running a *nix system, you can follow these steps:
- Get the source.
$ git clone https://github.com/jce-devel/pmatrix
- Enter the source directory.
$ cd pmatrix
- If you don't have sudo installed/configured, execute setup.py as the root user.
$ su && python setup.py install
- if you have sudo installed, log in as a sudoer and execute the setup.py file with sudo.
$ sudo setup.py install
- Done! It should now be a simple case of executing
$ pmatrix
in your favorite terminal emulator.
- Work on efficiency. You will always have to expect some overhead with Python and accept the fact that pmatrix will never be as fast as cmatrix.
- Parallelize loops (if possible).