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

t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
Effects of Changing the Character/Line Pitches
Before After
Using cpi with cpix clear:
orhi’ orhi
orc’ orc = orhi / Vc pi
Using cpi with cpix set:
orhi’ orhi = orc * Vcpi
orc’ orc
Using lpi with lpix clear:
orvi’ orvi
orl’ orl = orvi / Vlpi
Using lpi with lpix set:
orvi’ orvi = orl * Vlp
orl’ orl
Using chr:
orhi’ orhi
orc’ Vc hr
Using cvr:
orvi’ orvi
orl’ Vc vr
Using cpi or chr:
widcs’ widcs = widcs’ * orc / orc’
mcs’ mcs = mcs’ * orc / orc’
Vchr , Vcpi, Vcvr , and Vlpi are the arguments used with chr, cpi, cvr, and lpi, respectively. The
prime marks () indicate the old values.
Capabilities That Cause Movement
In the following descriptions, "movement" refers to the motion of the "current position". With video termi-
nals this would be the cursor; with some printers, this is the carriage position. Other printers have
different equivalents. In general, the current position is where a character would be displayed if printed.
terminfo has string capabilities for control sequences that cause movement a number of full columns or
lines. It also has equivalent string capabilities for control sequences that cause movement a number of
smallest steps.
String Capabilities for Motion
mcub1 Move 1 step left
mcuf1 Move 1 step right
mcuu1 Move 1 step up
mcud1 Move 1 step down
mcub Move N steps left
mcuf Move N steps right
mcuu Move N steps up
mcud Move N steps down
mhpa Move N steps from the left
mvpa Move N steps from the top
The latter six strings are each used with a single argument, N.
Sometimes the motion is limited to less than the width or length of a page. Also, some printers don’t
accept absolute motion to the left of the current position. terminfo has capabilities for specifying these
limits.
HP-UX 11i Version 2: August 2003 26 Hewlett-Packard Company Section 4337