HP-UX Reference (11i v2 03/08) - 4 File Formats (vol 8)

t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
Line Graphics
If the device has a line drawing alternate character set, the mapping of glyph to character would be given
in acsc. The definition of this string is based on the alternate character set used in the Digital VT100
terminal, extended slightly with some characters from the AT&T 4410v1 terminal.
VT100+
Glyph Name Character
arrow pointing right +
arrow pointing left ,
arrow pointing down .
solid square block 0
lantern symbol I
arrow pointing up -
diamond
checker board (stipple) a
degree symbol f
plus/minus g
board of squares h
lower right corner j
upper right corner k
upper left corner l
lower left corner m
plus n
scan line 1 o
horizontal line q
scan line 9 s
left tee ( -) t
right tee ( - ) u
bottom tee ( _ ) v
top tee ( ) w
vertical line x
bullet ~
The best way to describe a new device’s line graphics set is to add a third column to the above table with
the characters for the new device that produce the appropriate glyph when the device is in alternate-
character-set mode. For example:
VT100+ Character Used
Glyph Name Character on New Device
upper left corner lR
lower left corner mF
upper right corner kT
lower right corner jG
horizontal line q,
vertical line x.
Now write down the characters left to right; for example:
acsc=lRmFkTjGq\,x.
In addition, terminfo lets you define multiple character sets (see the "Alternate Character Sets" section
below.
Color Manipulation
Most color terminals belong to one of two classes of terminal:
Tektronix-style
The Tektronix method uses a set of N predefined colors (usually 8) from which an application can
select "current" foreground and background colors. Thus a terminal can support up to N colors
mixed into N*N color-pairs to be displayed on the screen at the same time.
Hewlett-Packard-style
In the HP method, the application cannot define the foreground independently of the back-
ground, or vice-versa. Instead, the application must define an entire color-pair at once. Up to M
color-pairs, made from 2*M different colors, can be defined this way.
Section 4332 Hewlett-Packard Company 21 HP-UX 11i Version 2: August 2003