akinomyoga / cxxmatrix

C++ Matrix: The Matrix Reloaded in Terminals (Number falls, Banners, Matrix rains, Conway's Game of Life and Mandelbrot set)
MIT License
692 stars 76 forks source link

[Feature] Ability to switch between scenes #6

Closed richrd closed 4 years ago

richrd commented 4 years ago

Hi! Really nice project!

It'd be really handy to be able to choose to only show a specific scene(s) via a command line argument. Also switching scenes on demand with e.g. the number keys while it's running would be really nice.

akinomyoga commented 4 years ago

Supported. Could you please check ./cxxmatrix --help and see if it works?

Update: rain_forever in help is a typo of rain-forever. I'll push a fix later. pushed Update: fixed some problems related to nonblock I/O.

richrd commented 4 years ago

Wow that was really quick, many thanks! Just tested it and it works great. I'm sort of collecting a list of various cool terminal effects and this one is definitely going high on the list. Ever since seeing this gif I've been a bit obsessed things like this (it's stuff running in an actual terminal): https://media.giphy.com/media/fVY0d5fm6UnPG/giphy.gif

akinomyoga commented 4 years ago

Thank you for testing and your encouraging words!

Ever since seeing this gif

Maybe you already know it, but I think you will be also interested in sixel graphics which is a graphics protocol of terminals. You can find a gallery of sixel applications in the following page:

richrd commented 4 years ago

Cool, I've head of SIXEL but I haven't seen that project. Thanks for sharing!