DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Changing colors

The -bg and -fg options

Most clients also accept the -bg and -fg command line options. These options control the following elements of a client's display:


-bg
sets the client window's background color

-fg
sets the client window's foreground color (usually the color of the text in the window)

You can set these options using either a color's database name or its hexadecimal RGB values.

For example, to run the xclock program with a plum background and navy text, enter the following at the command line:

xclock -bg plum -fg navy &

If a color name includes blank spaces, you need to include quotation marks around the name. For example, to specify light blue as the background for xclock, enter:

xclock -bg "light blue" &


Next topic: Adding custom colors to the database
Previous topic: The -xrm option

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003