Terminal based "The Matrix" like implementation

CMatrix

CMatrix is based on the screensaver from The Matrix website. It shows text flying in and out in a terminal like as seen in "The Matrix" movie. It can scroll lines all at the same rate or asynchronously and at a user-defined speed.

CMatrix by default operates in eye candy mode. It must be aborted with control-c (Ctrl+C) or by pressing q. If you wish for more of a screen saver effect, you must specify -s on the command line. For usage info, use cmatrix -h.

Build Status

Dependencies

You'll probably need a decent ncurses library to get this to work.

Building and installing cmatrix

To install cmatrix, use either of the following methods from within the cmatrix directory.

Using configure (recommended for most linux user)

autoreconf -i  # skip if using released tarball
./configure
make
make install

Using CMake

Here we also show an out-of-source build in the sub directory "build".

mkdir -p build
cd build
# to install to "/usr/local"
cmake ..
# or to install to "/usr"
#cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
make install

Running cmatrix

After you have installed cmatrix just run cmatrix to run cmatrix :)

To get the program to look most like the movie, use cmatrix -lba To get the program to look most like the Win/Mac screensaver, use cmatrix -ol

Valuable information

If you have any suggestions/flames/patches to send, please feel free to open issues and if possible solve them in PRs via Github.

Note: cmatrix is probably not particularly portable or efficient, but it wont hog too much CPU time

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Szybkie sprawdzenie zewnętrznego adresu IP i hosta
Viewed 3578 times since Thu, May 24, 2018
Build a simple RPM that packages a single file
Viewed 8824 times since Sat, Jun 2, 2018
Exclude multiple files and directories with rsync
Viewed 2753 times since Wed, Oct 31, 2018
Turbocharge PuTTY with 12 Powerful Add-Ons – Software for Geeks #3
Viewed 14955 times since Sun, Sep 30, 2018
8 Vim Tips And Tricks That Will Make You A Pro User
Viewed 3156 times since Fri, Apr 19, 2019
How to convert RAW image to VDI and otherwise
Viewed 15286 times since Wed, Oct 3, 2018
Linux / UNIX: Run Command a Number of Times In a Row
Viewed 16106 times since Tue, Aug 6, 2019
How setting the TZ environment variable avoids thousands of system calls
Viewed 10421 times since Mon, May 21, 2018
RHEL: Remove existing SAN LUNs
Viewed 14326 times since Sat, Jun 2, 2018
RHEL: How to rebuild and/or patch a RPM package
Viewed 9044 times since Sat, Jun 2, 2018