How to set color in the xterm

Hello Friends,

I am using solaris 10 operating system. I would like to know how to use the xterm color in it. I am trying this command:- xterm -bg color, but it is giving this
talc:/home/ania {ania} xterm -bg color
[1] 21469
-bg: Command not found.

What should i do? Can u help me guys??

Thanks
Adi

That looks like you are trying to background it, but the commandline doesn't include an &. Please post the actual command you are running within CODE tags

Actually "color" is no legal color value: try (for instance)

xterm -bg steelblue

and it will work. Instead of "steelblue" you could also use "wheat", "black", "grey50" or several dozens of other colours, but not "color", since that is no defined colour at all.

You can alternatively specify the RGB-value of the colour you want to achieve for background (-bg), foreground (-fg) and cursor (-cr). For example this is my favourite text-editing window with a very dark blue-green background, blue-green text and a light cursor:

xterm -fg rgb:20/D0/C0 -bg rgb:30/30/50 -cr wheat -fn rom14 -geometry 80x40 -ls

I hope this helps.

bakunin

That's a rather nice scheme indeed... *steals* :slight_smile: