terminfo.4 (2010 09)

t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
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.
Entering/Exiting Reverse Modes
slm Reverse sense of horizontal motions
rlm Restore sense of horizontal motions
sum Reverse sense of vertical motions
rum Restore sense of vertical motions
While sense of horizontal motion is reversed:
mcub1 Move 1 step right
mcuf1 Move 1 step left
mcub Move N steps right
mcuf Move N steps left
cub1 Move 1 column right
cuf1 Move 1 column left
cub Move N columns right
cuf Move N columns left
While sense of vertical motion is reversed:
mcuu1 Move 1 step down
mcud1 Move 1 step up
mcuu Move N steps down
mcud Move N steps up
cuu1 Move 1 line down
cud1 Move 1 line up
cuu Move N lines down
cud Move N lines up
The reverse motion modes should not affect the mvpa and mhpa absolute motion capabilities. The
reverse vertical motion mode should, however, also reverse the action of the line "wrapping" that occurs
when a character is printed in the right-most position. Thus printers that have the standard terminfo
capability am defined should experience motion to the beginning of the previous line when a character is
printed in the rightmost position in reverse vertical motion mode.
The action when any other motion capabilities are used in reverse motion modes is not defined; thus, pro-
grams must exit reverse motion modes before using other motion capabilities.
30 Hewlett-Packard Company 30 HP-UX 11i Version 3: September 2010