LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Looking for a list or chart of colors (https://www.linuxquestions.org/questions/linux-general-1/looking-for-a-list-or-chart-of-colors-345652/)

whfarrar 07-22-2005 05:28 AM

Looking for a list or chart of colors
 
I'm looking for a list or a chart of colors. I've used the helpful search features for this forum and others, but I didn't find exactly what I'm looking for.

I would like to see if there is a full chart listing the meaning of the color numbers I've seen (fi=32, di=34, etc) What do those numbers mean? How would I find the list or chart of what those numbers mean? What colors are mapped to what numbers?

I've looked on tldp.org and couldn't find it either, and a search on Google lead me to several places, but nothing quite like what I'm looking for.

If I want to set or change the colors in a terminal, how would I know what colors I would end up with if I don't know what those numbers will render?

I hope my question makes sense.

Thank you,
Woody

druuna 07-22-2005 08:51 AM

Hi,

This is not an official list, but as far as I know it's accurate:

Attribute codes
00=none
01=bold
04=underscore
05=blink
07=reverse
08=concealed

Text color codes
30=black
31=red
32=green
33=yellow
34=blue
35=magenta
36=cyan
37=white

Background color codes
40=black
41=red
42=green
43=yellow
44=blue
45=magenta
46=cyan
47=white

Hope this helps.

titanium_geek 07-22-2005 09:19 AM

druuna, I'm going to add this to the wiki- if you don't mind.
http://wiki.linuxquestions.org/wiki/Color_Codes

titanium_geek

druuna 07-22-2005 09:29 AM

Hi,

My first, indirect, addition to wiki :)

As you migth expect: I don't mind at all.

whfarrar 07-22-2005 03:26 PM

Thank you druuna!
 
I knew Linux Questions was the place to go for answers. Thank you - that was exactly what I was looking for.

Thank you all!

Woody


All times are GMT -5. The time now is 07:52 AM.