Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fm_colors(3W) — HP-UX 5.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fm_write(3w)

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

fm_write(3w). 

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

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