1826452 Members
4063 Online
109692 Solutions
New Discussion

Re: Colors in xterm

 
SOLVED
Go to solution
Alex Lavrov
Regular Advisor

Colors in xterm

Hello,
I'm using CDE and using different colors in xterm on different servers.
Where I can find a list of available colors?
I know there are some strange names like "peachpuff" and "skyblue".

Thanx for the future help.
6 REPLIES 6
Mark Grant
Honored Contributor
Solution

Re: Colors in xterm

Have a look at "man rgb"

Never preceed any demonstration with anything more predictive than "watch this"
Kenneth Platz
Esteemed Contributor

Re: Colors in xterm

Look in /usr/lib/X11/rgb.txt
I think, therefore I am... I think!
Mark Greene_1
Honored Contributor

Re: Colors in xterm

Look in file /etc/X11/rgb.txt for the list of color names.

mark
the future will be a lot like now, only later
Sridhar Bhaskarla
Honored Contributor

Re: Colors in xterm

Hi,

As stated, it's under /etc/X11/rgb.txt. If I want to see how it looks exactly, I do the following

xterm -bg ColorName

You can add your own colors to it. For ex.,

0 82 121 Sridhar

#rgb < rgb.txt

xterm -bg Sridhar

-Sri


You may be disappointed if you fail, but you are doomed if you don't try
Alex Lavrov
Regular Advisor

Re: Colors in xterm

Thanx all for the answers!

Best regards,
Alex

Re: Colors in xterm

Hi Alex,

Have a look to this command :

/usr/contrib/bin/X11/showrgb

It list all the RGB colors with their names...

Best regards