HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)

t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
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.
Limits to Motion
mjump Limit on use of mcub1, mcuf1, mcuu1, mcud1
maddr Limit on use of mhpa, mvpa
xhpa If set, hpa and mhpa can’t move left
xvpa If set, vpa and mvpa can’t move up
If a printer needs to be in a "micro mode" for the motion capabilities described above to work, there are
string capabilities defined to contain the control sequence to enter and exit this mode. A boolean is avail-
able for those printers where using a carriage return causes an automatic return to normal mode.
Entering/Exiting Micro Mode
smicm Enter micro mode
rmicm Exit micro mode
crxm Using cr exits micro mode
The movement made when a character is printed in the rightmost position varies among printers. Some
make no movement, some move to the beginning of the next line, others move to the beginning of the same
line. terminfo has boolean capabilities for describing all three cases.
What Happens After Character Printed in Rightmost Position
sam Automatic move to beginning of same line
Some printers can be put in a mode where the normal direction of motion is reversed. This mode can be
especially useful when there are no capabilities for leftward or upward motion, because those capabilities
can be built from the motion reversal capability and the rightward or downward motion capabilities. It is
best to leave it up to an application to build the leftward or upward capabilities, though, and not enter them
in the terminfo database. This allows several reverse motions to be strung together without intervening
wasted steps that leave and reenter reverse mode.
HP-UX 11i Version 3: February 2007 29 Hewlett-Packard Company 513