Posted: . At: 9:18 AM. This was 3 years ago. Post ID: 14789
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



How to print out bash colors and see how many are available on your chosen terminal.


A color terminal on Linux can print a wide variety of colors. But how many colors can it print? The colortest utility can show this.

Install it like this.

┌──[jason@192.168.1.2][~/Documents]
└──╼  ╼ $ sudo apt-get install colortest

Then run it to get a display table for 16-color terminal escape sequences.

Printing available terminal colors.
Printing available terminal colors.

This can also print out a 256 color table. This is very useful to see the capabilities of your terminal.

Printing out a 256 color table in the terminal.
Printing out a 256 color table in the terminal.

A user may also use this command to view all available colors and font styles.

┌──[jason@192.168.1.2][~/Documents]
└──╼  ╼ $ msgcat --color=test

This should help out a user that has installed a custom terminal and wishes to test out the color support and font display capabilities.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.