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

t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
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.
Two miscellaneous capabilities complete the list of motion capabilities. One of these is needed for printers
that move the current position to the beginning of a line when certain control characters, such as line feed
or form feed, are used. The other is used for the capability of suspending the motion that normally occurs
after printing a character.
Miscellaneous Motion Strings
docr List of control characters causing cr
zerom Prevent auto motion after printing next single character
Margins
terminfo provides two strings for setting margins on terminals: one for the left and one for the right mar-
gin. Printers, however, have two additional margins, for the top and bottom margins of each page. Furth-
ermore, some printers require not using motion strings to move the current position to a margin and then
fixing the margin there, but require the specification of where a margin should be regardless of the current
position. Therefore terminfo offers six additional strings for defining margins with printers.
514 Hewlett-Packard Company 30 HP-UX 11i Version 3: February 2007