Skip to content

Glitchy-Sheep/type-matrix

Repository files navigation

About 🐇

This app is highly inspired by cmatrix project. It turns your command line into a matrix-like terminal (preview). However, it has some unique features such as an interactive mode, changing the alphabet, and changing the line length. In interactive mode, symbols fall only when you're typing text with your keyboard. It also maps keys' position to symbols' position, so if you type from the left, symbols fall from the left.

All you need is just run it and follow the white rabbit.

Table of contents:

  1. Usage
  2. Preview
  3. How to build

Usage

Type-matrix has a few options, you can find them if you pass --help option.
If you run it without any options they will be the default.

Available options:
-h --help             show this help message

-i --interactive      matrix falls only when you're typing.
                      so you can impress your friends with your hacker skills B)

-c --color            set matrix main color  (default=green)
  Available colors:
  black, blue, cyan, green, magenta, red, white, yellow

-r --rainbow          turn on matrix disco mode. (ignores --color)

-b --bold             enable random bold symbol generation  (default=disabled)

-f --fps              set matrix frames per second limit  (default=15)

-l --length           set maximum length of a line tail  (default=8)

-d --deviation        set minimum length of a line via deviation (default=3)
                      this option calculates minimum length as a difference between
                      length  value and deviation value, so for example:
                      [length=8 deviation=3 -> min_length = 8-3 = 5]

-a --alphabet         set matrix alphabet as a single string
                      example: -alph abc123

-s --screensaver      exit the program if any key is pressed

-m --message          print some message to the center of the screen

-C --message-color    set message main color
  Available colors:
  black, blue, cyan, green, magenta, red, white, yellow

Preview

Normal mode:



Interactive mode (I'm typing here):



How to build

This project uses conan package manager and CMake for building automation, so you need to install them first.
If you don't like package managers, you also can link all the libraries manually.

Dependencies

  1. Argh!
  2. pdcurses (for windows) / ncurses (for linux)

Building Process:

Now the project has automation scripts for building, you can find all necessary instructions here.

About

Anti-stress application that generates a "matrix effect" when you are typing.

Topics

Resources

License

Stars

Watchers

Forks