FM_COLORS(3W)
Series 300 and 500 Only
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).
HARDWARE DEPENDENCIES
Series 500:
Font manager routines do not support HP-15 (2-byte) fonts on Series 500.
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 — May 11, 2021