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

t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
single attribute.
terminfo can describe both terminals that have an insert mode and terminals which send a simple
sequence to open a blank position on the current line. Give as smir the sequence to get into insert mode.
Give as rmir the sequence to leave insert mode. Now give as ich1 any sequence needed to be sent just
before sending the character to be inserted. Most terminals with a true insert mode will not give ich1;
terminals that send a sequence to open a screen position should give it here. (If your terminal has both,
insert mode is usually preferable to ich1. Do not give both unless the terminal requires both to be used
in combination.) If post-insert padding is needed, give this as a number of milliseconds padding in ip (a
string option). Any other sequence which may need to be sent after an insert of a single character may
also be given in ip. If your terminal needs both to be placed into an "insert mode" and a special code to
precede each inserted character, then both smir/rmir and ich1 can be given, and both will be used.
The ich capability, with one argument, n, will insert n blanks.
If padding is necessary between characters typed while not in insert mode, give this as a number of mil-
liseconds padding in rmp.
It is occasionally necessary to move around while in insert mode to delete characters on the same line (for
example, if there is a tab after the insertion position). If your terminal allows motion while in insert
mode you can give the capability mir to speed up inserting in this case. Omitting mir will affect only
speed. Some terminals (notably Datamedia) must not have mir because of the way their insert mode
works.
Finally, you can specify dch1 to delete a single character, dch with one argument, n, to delete n charac-
ters, and delete mode by giving smdc and rmdc to enter and exit delete mode (any mode the terminal
needs to be placed in for dch1 to work).
A command to erase n characters (equivalent to outputting n blanks without moving the cursor) can be
given as ech with one argument.
Highlighting, Underlining, and Visible Bells
Your device may have one or more kinds of display attributes that allow you to highlight selected charac-
ters when they appear on the screen. The following display modes (shown with the names by which they
are set) may be available:
A blinking screen (blink)
Bold or extra-bright characters (bold)
Dim or half-bright characters (dim)
Blanking or invisible text (invis)
Protected text (prot)
A reverse-video screen (rev)
An alternate character set (smacs to enter this mode and rmacs to exit it). (If a command is
necessary before you can enter alternate character set mode, give the sequence in enacs or
"enable alternate-character-set" mode.) Turning on any of these modes singly may turn off other
modes.
sgr0 should be used to turn off all video enhancement capabilities. It should always be specified because
it represents the only way to turn off some capabilities, such as dim or blink.
Choose one display method as standout mode and use it to highlight error messages and other text to
which you want to draw attention. Choose a form of display that provides strong contrast but that is easy
on the eyes. (We recommend reverse-video plus half-bright or reverse-video alone.) The sequences to
enter and exit standout mode are given as smso and rmso, respectively. If the code to change into or
out of standout mode leaves one or even two blank spaces on the screen, as the TVI 912 and Teleray 1061
do, then xmc should be given to tell how many spaces are left.
Sequences to begin underlining and end underlining can be specified as smul and rmul, respectively. If
the device has a sequence to underline the current character and to move the cursor one space to the
right (such as the Micro-Term MIME), this sequence can be specified as uc.
Terminals with the "magic cookie" glitch (xmc) deposit special "cookies" when they receive mode-setting
sequences, which affect the display algorithm rather than having extra bits for each character. Some ter-
minals, such as the Hewlett-Packard 2621, automatically leave standout mode when they move to a new
line or the cursor is addressed. Programs using standout mode should exit standout mode before moving
the cursor or sending a newline, unless the msgr capability, asserting that it is safe to move in standout
Section 4328 Hewlett-Packard Company 17 HP-UX 11i Version 2: August 2003