Mikhail T.
2013-11-25 19:14:22 UTC
Hello!
I am using xterm for most of my command-line work, but am getting bored and
otherwise troubled by the monotonous colors.
I'd like my xterms invoked with a (semi-)randomly picked colors for back- and
foreground -- as long as the two choices provide decent enough contrast.
How would one pick such a pair? The only requirement is that the two are "far
enough" from each other to be easy to use...
If anyone explains the algorithm to me well enough, I should be able to offer
patches against xterm's sources -- the ultimate plan is to make the color-combo
dependent on the command executed inside:
xterm -CR -e ssh foo
would (always) use one pair, while
xterm -CR -e tail -f /var/log/bar
would always use another. (The fictious `-CR' option would trigger the new
behavior.) Thanks in advance for any suggestions. Yours,
-mi
I am using xterm for most of my command-line work, but am getting bored and
otherwise troubled by the monotonous colors.
I'd like my xterms invoked with a (semi-)randomly picked colors for back- and
foreground -- as long as the two choices provide decent enough contrast.
How would one pick such a pair? The only requirement is that the two are "far
enough" from each other to be easy to use...
If anyone explains the algorithm to me well enough, I should be able to offer
patches against xterm's sources -- the ultimate plan is to make the color-combo
dependent on the command executed inside:
xterm -CR -e ssh foo
would (always) use one pair, while
xterm -CR -e tail -f /var/log/bar
would always use another. (The fictious `-CR' option would trigger the new
behavior.) Thanks in advance for any suggestions. Yours,
-mi