Try all colors in xterm with script before setting the color
If you are looking for testing the colors on how they would look like in the xterm before you set the color then here is a small script for you.
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
This can be used in various ways but I will leave the choice to you. One option that I should probably still tell is :
Execute a command like ls to see how the settings for dircolors would look like in the terminal. To do this change the line where we are invoking xterm to the below line:
1
|
Do remember the sleep to some suitable time according to your needs.
Hope this helps you choose the color you want for your xterm background.
Related articles
- Use Xterm as a Full Screen, Distraction-Free Terminal in OS X [Terminal Tip] (lifehacker.com)
- imabonehead: Managing Multiple Linux Servers with ClusterSSH | Linux.com (linux.com)
- Implementation: Collatz Conjecture (codebypepo.wordpress.com)
Related Articles:
- 2010/06/06 colors in bash – script to display all the possible colors.
- 2010/11/09 Print all environment variables, including hidden ones
- 2010/09/24 bash script to run a command and take screenshot in every loop.
- 2010/09/04 Remove some path from the PATH variable temporarily.
- 2010/07/20 Linux command to repeat a string n times - Super User
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.