3 ms·
Every new terminal I open uses a random background color. All colored text is always readable. What I did was make sure the background colors were always dark,
by jolmg 9y ago
Every new terminal I open uses a random background color. All colored text is always readable.
What I did was make sure the background colors were always dark, and set the first 16 terminal colors to be light. I randomized the background color by specifing it to the terminal via a command line option as the output of this 10-line script[1] that takes an HSV Value as an argument and returns an RGB with randomized Hue.
It's nice for terminals to be differently colored when you have many of them open. It helps one to realize when you've switched to the right one.
[1] https://github.com/jolmg/randcolor https://github.com/jolmg/randcolor