abishekvashok / cmatrix

Terminal based "The Matrix" like implementation
GNU General Public License v3.0
4.02k stars 417 forks source link

Default Colors Flag #122

Open nixpulvis opened 3 years ago

nixpulvis commented 3 years ago

It would be nice if there was an option to use the default colors of the terminal instead of the curses supplied ones.

rjraymond commented 3 years ago

I'm working on that now. What argument is most intuitive for this? I'm using "-T" rn

rjraymond commented 3 years ago

Can you elaborate on exactly what you mean by that? What I'm hearing is "I wish that cmatrix would find the default terminal text color (singular) and use that". Is this what you mean?

nixpulvis commented 3 years ago

I'm talking about the ANSI color codes (e.g. red \e[31m), which there are 9 of.

rjraymond commented 3 years ago

So of all nine of those possibilities, you want cmatrix to choose one based off the current terminal settings?

nixpulvis commented 3 years ago

Ideally,

cmatrix -C red -T

would use my default background, and the same escape \e[31m for red.

rjraymond commented 3 years ago

I haven't seen a terminal background that cmatrix doesn't respect. Just tested on rxvt-univode, xterm, lxterminal, gnome terminal. So you're saying that the actual rgb values for RED, GREEN, etc. are all good, you just want cmatrix to use the default terminal background color instead of overwriting it? I think this is already the case. Can you explain what happens and why you don't like it. What you want to happen, and why?