Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ wsetbcolor(3W) — HP-UX 6.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

wgetbcolor(3w)

WSETBCOLOR(3W)

Series 300 Only

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

wgetbcolor(3w). 

DIAGNOSTICS

A return of -1 indicates failure; otherwise 0 is returned.  See errno(2) for more information.
 
 

Hewlett-Packard Company  —  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026