facolors(3w)
NAME
facolors − set the fast alpha font foreground and background colors
SYNOPSIS
#include <fa.h>
int facolors(gfd,foreground,background);
int gfd;
int foreground,background;
DESCRIPTION
gfd is an integer file descriptor for an gopened device interface.
foreground is the new foreground color.
background is the new background color.
DISCUSSION
Sets the foreground and background colors of the activated font for all further fast alpha operations. These colors are indices into the system color map. Valid values are: 0 and 1 for monochromatic displays, 0 to 15 for 4-plane color, and 0 to 255 for 16-plane color. The color table index 0 is assumed to be black and the index 1 is assumed to be white. Note, that if colormode is not set to FACOLOR, the system will ignore any color changes; see fagetinfo and fasetinfo.
Color values outside the acceptable range (i.e., 0 or 1 for monochrome, 0 to 15 for 4-plane color, and 0 to 255 for 8-plane color) will default to 1 (white).
SEE ALSO
DIAGNOSTICS
A value of −1 is returned if gfd is invalid or a call to fainit was never executed on this gfd. See errno(2) for further information.
Hewlett-Packard Company — HP-UX Release 9.10: April 1995