WSETBCOLOR(3W)
NAMER
wsetbcolor − set window border colors
SYNOPSIS
int wsetbcolor(fd,fgborder,bgborder);
int fd;
int fgborder,bgborder;
DESCRIPTION
fd is an integer file descriptor for an opened window type device interface.
fgborder,bgborder
the foreground label character color, and background label and border color. Colors are taken from the system (Starbase) color map.
DISCUSSION
Defaults for fgborder and bgborder are determined from the WMBDRFGCLR and WMBDRBGCLR window system environment variables.
If a color is out of range for the device, it is modified to be within the valid range. Normally the valid range is from 0 to (2^N - 1), where N is the number of planes. If double buffering color mode is enabled via the WMCONFIG environment variable , then the valid range is from 0 to (2^(N/2) - 1), and the color actually displayed is of the form (C << (N/2) + C), where C is the color to display.
SEE ALSO
DIAGNOSTICS
A return of -1 indicates failure; otherwise 0 is returned. See errno(2) for more information.
Hewlett-Packard Company — May 11, 2021