Terminal based "The Matrix" like implementation


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


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
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"
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
There are no attachments for this article.
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
How to Configure ‘FirewallD’ in RHEL/CentOS 7 and Fedora 21
Viewed 10078 times since Wed, Oct 9, 2019
Linux Chage Command to Set Password Aging for User
Viewed 2133 times since Tue, Sep 11, 2018
RHEL: Display swap/RAM size
Viewed 3012 times since Sat, Jun 2, 2018
RHEL: GPT/MBR partition tables (using disks larger than 2 TiB)
Viewed 11949 times since Sun, May 27, 2018
haproxy linux
Viewed 2232 times since Sun, Dec 6, 2020
Yum Update: DB_RUNRECOVERY Fatal error, run database recovery
Viewed 3753 times since Fri, Jan 17, 2020
VMWare tools free
Viewed 8162 times since Mon, Jul 16, 2018
Using etckeeper with git
Viewed 6526 times since Sun, Jun 3, 2018
OpenSSL: Check SSL Certificate Expiration Date and More
Viewed 6344 times since Mon, Feb 18, 2019
Viewed 16702 times since Sat, Jun 2, 2018