setcolor(1) UNIX System V setcolor(1)
NAME
setcolor, setcolour - set screen color
SYNOPSIS
setcolor [-nbrgopc] argument [argument]
setcolour [-nbrgopc] argument [argument]
DESCRIPTION
setcolor and setcolour allow the user to set the screen to a specific
color. Both foreground and background colors can be set independently in
a range of 16 colors. setcolor can also set the reverse video and
graphics character colors. setcolor with no arguments produces a usage
message that displays all available colors, then resets the screen to its
previous state.
For example, the following strings are possible colors:
blue magenta brown black
ltblue ltmagenta yellow gray
cyan white green red
ltcyan hiwhite ltgreen ltred
OPTIONS
The following options are available for setcolor and setcolour. In the
arguments below, color is taken from the above list.
-n Sets the screen to normal white characters on black
background.
color [color] Sets the foreground to the first color. Sets background
to second color if a second color choice is specified.
-b color Sets the background to the specified color.
-r color color Set the foreground reverse video characters to the first
color. Set reverse video characters' background to second
color.
-g color color Set the foreground graphics characters to the first color.
Set graphics characters' background to second color.
-o color Sets the color of the screen border (over scan region).
To reset border color, use -o black.
-p pitch duration
Set the pitch and duration of the bell. Pitch is the
period in microseconds, and duration is measured in fifths
of a second. When using this option, a control-G (bell)
must be echoed to the screen for the command to work. For
example:
setcolor -p 2500 2
echo ^G
10/89 Page 1
setcolor(1) UNIX System V setcolor(1)
-cfirst last Set the first and last scan lines of the cursor.
NOTES
The ability of setcolor to set any of these described functions is
ultimately dependent on the ability of devices to support them. For
example, the -o option does not work on the Color Graphics Adapter (CGA).
setcolor emits an escape sequence that may or may not have an effect on
monochrome devices.
Occasionally changing the screen color can help prolong the life of your
monitor.
Page 2 10/89