Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

thesudoer2/cmatrix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

cmatrix

A simple implementation of the "Matrix rain" effect using C++ and the ncurses library.

Features

  • Matrix digital rain animation in the terminal
  • Cross-platform compatibility (Linux distributions with ncurses)
  • Compact, simple C++ source code

Prerequisites

Before building or running cmatrix, ensure you have the following dependencies installed:

  • C++ compiler (supporting at least C++11)
  • ncurses library
  • (Optional) make utility for convenient building

Installing ncurses

On Debian based distributions:

sudo apt-get install -y libncurses5-dev libncursesw5-dev

On RetHat based distributions:

sudo dnf install -y ncurses-devel

Installing Make (for optional Makefile build)

On Debian based distributions:

sudo apt-get install -y make

On RetHat based distributions:

sudo dnf install -y make

Building

Manual Compilation

From the project root directory, run:

gcc main.cpp matrix.cpp -lstdc++ -lncurses -std=c++11 -O2 -o cmatrix

Using Make

Navigate to the src/ directory:

cd src/
make

This will produce the executable as specified in the Makefile.

Usage

Simply run the compiled cmatrix binary to see the Matrix rain animation in your terminal.

./cmatrix

Demo

See a sample of the program in action:

cmatrix.mp4

Feel free to fork, contribute, or open issues!

About

Ncurses based cmatrix utility.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published