fm_colors(3w)
NAME
fm_colors − set active font’s foreground and background colors
SYNOPSIS
int fm_colors(gfd,foreground,background);
int gfd,foreground,background;
DESCRIPTION
gfd is an integer file descriptor for an gopened device interface.
foreground is the new foreground color; valid values are device dependent.
background is the new background color; valid values are device dependent.
DISCUSSION
Sets the foreground and background colors as would be used by fm_write.
Though the colors are device dependent, it is generally safe to assume that 0 is black (off) and 1 is white (on).
SEE ALSO
DIAGNOSTICS
Returns −1 if gfd is not valid or the color is out of range. See errno(2) for more information.
Hewlett-Packard Company — HP-UX Release 9.0: August 1992