A simple implementation of the "Matrix rain" effect using C++ and the ncurses library.
- Matrix digital rain animation in the terminal
- Cross-platform compatibility (Linux distributions with ncurses)
- Compact, simple C++ source code
Before building or running cmatrix, ensure you have the following dependencies installed:
- C++ compiler (supporting at least C++11)
- ncurses library
- (Optional)
makeutility for convenient building
On Debian based distributions:
sudo apt-get install -y libncurses5-dev libncursesw5-devOn RetHat based distributions:
sudo dnf install -y ncurses-develOn Debian based distributions:
sudo apt-get install -y makeOn RetHat based distributions:
sudo dnf install -y makeFrom the project root directory, run:
gcc main.cpp matrix.cpp -lstdc++ -lncurses -std=c++11 -O2 -o cmatrixNavigate to the src/ directory:
cd src/
makeThis will produce the executable as specified in the Makefile.
Simply run the compiled cmatrix binary to see the Matrix rain animation in your terminal.
./cmatrixSee a sample of the program in action:
cmatrix.mp4
Feel free to fork, contribute, or open issues!