Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fm_colors(3G) — HP-UX ANSI C A.10.11

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fm_write(3G)

fm_colors(3G)

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

fm_write(3G). 

DIAGNOSTICS

Returns −1 if gfd is not valid or the color is out of range.  See errno(2) in HP-UX Reference for more information. 

Hewlett-Packard Company  —  HP-UX Release 10.0

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