HP-UX Reference (11i v1 00/12) - 4 File Formats (vol 8)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man4/!!!intro.4
________________________________________________________________
___ ___
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 / Vcpi
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’ Vchr
Using cvr:
orvi’ orvi
orl’ Vcvr
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 capabilitiesfor specifying these limits.
Section 4348 26 HP-UX Release 11i: December 2000
___
___