HP-UX Reference (11i v1 05/09) - 4 File Formats (vol 8)
t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
set the tabs using tbc and hts; print the file if; and finally output is3. This is usually done using the
init option of tput.
Most initialization is done with is2. Special device modes can be set up without duplicating strings by
putting the common sequences in is2 and special cases in is1 and is3. Sequences that do a reset from
a totally unknown state can be given as rs1, rs2, rf, and rs3, analogous to is1, is2, is3, and if.
(The method using files, if and rf, is used for a few terminals; however, the recommended method is to
use the initialization and reset strings.) These strings are output by tput reset, which is used when the
terminal gets into a wedged state. Commands are normally placed in rs1, rs2, rs3, and rf only if they
produce annoying effects on the screen and are not necessary when logging in. For example, the command
to set a terminal into 80-column mode would normally be part of is2, but on some terminals it causes an
annoying glitch on the screen and is not normally needed because the terminal is usually already in 80-
column mode.
If a more complex sequence is needed to set the tabs than can be described by using tbc and hts, the
sequence can be placed in is2 or if.
Any margin can be cleared with mgc. (For instructions on how to specify commands to set and clear mar-
gins, see the "Margins" subsection of the "Capabilities That Cause Movement" section below.
Delays
Certain capabilities control padding in the tty driver. These are primarily needed by hard-copy terminals,
and are used by tput init to set tty modes appropriately (see tput(1)). Delays embedded in the capabili-
ties cr, ind, cub1, ff, and tab can be used to set the appropriate delay bits to be set in the tty driver.
If pb (padding baud rate) is given, these values can be ignored at baud rates below the value of pb.
Status Lines
If the terminal has an extra "status line" that is not normally used by software, this fact can be indicated.
If the status line is viewed as an extra line below the bottom line, into which one can cursor-address nor-
mally (such as the Heathkit H19’s 25th line, or the 24th line of a VT100 which is set to a 23-line scrolling
region), the capability hs should be given. Special strings that go to a given column of the status line and
return from the status line can be given as tsl and fsl.(fsl must leave the cursor position in the same
place it was before tsl. If necessary, the sc and rc strings can be included in tsl and fsl to get this
effect.) The capability tsl takes one argument, which is the column number of the status line the cursor
is to be moved to.
If escape sequences and other special commands, such as tab, work while in the status line, the flag eslok
can be given. A string which turns off the status line (or otherwise erases its contents) should be given as
dsl. If the terminal has commands to save and restore the position of the cursor, give them as sc and
rc. The status line is normally assumed to be the same width as the rest of the screen (that is, cols). If
the status line is a different width (possibly because the terminal does not allow an entire line to be loaded)
the width, in columns, can be indicated with the numeric argument wsl.
Section 4−−346 Hewlett-Packard Company − 20 − HP-UX 11i Version 1: September 2005