HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)
t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
Bit Decimal Characteristic
Attribute Position Value That Sets
WA_STANDOUT 01sgr, parameter 1
WA_UNDERLINE 12sgr, parameter 2
WA_REVERSE 24sgr, parameter 3
WA_BLINK 38sgr, parameter 4
WA_DIM 416sgr, parameter 5
WA_BOLD 532sgr, parameter 6
WA_INVIS 664sgr, parameter 7
WA_PROTECT 7 128 sgr, parameter 8
WA_ALTCHARSET 8 256 sgr, parameter 9
WA_HORIZONTAL 9 512 sgr1, parameter 1
WA_LEFT 10 1024 sgr1, parameter 2
WA_LOW 11 2048 sgr1, parameter 3
WA_RIGHT 12 4096 sgr1, parameter 4
WA_TOP 13 8192 sgr1, parameter 5
WA_VERTICAL 14 16384 sgr1, parameter 6
When a particular video attribute should not be used with colors, set the corresponding ncv bit to 1; other-
wise set it to 0. To determine the information to pack into the ncv variable, add the decimal values
corresponding to those attributes that cannot coexist with colors. For example, if the terminal uses colors
to simulate reverse video (bit number 2 and decimal value 4) and bold (bit number 5 and decimal value 32),
the resulting value for ncv will be 36 (4 + 32).
Miscellaneous
If the terminal requires other than a null (zero) character as a pad, then this can be given as pad. Only
the first character of the pad string is used. If the terminal does not have a pad character, specify npc.
If the terminal can move up or down half a line, this can be indicated with hu (half-line up) and hd (half-
line down). This is primarily useful for superscripts and subscripts on hardcopy terminals. If a hardcopy
terminal can eject to the next page (form feed), give this as ff (usually control-L).
If there is a command to repeat a given character a given number of times (to save time transmitting a
large number of identical characters) this can be indicated with the argumentized string rep. The first
argument is the character to be repeated and the second is the number of times to repeat it. Thus,
tparm(repeat_char, ’x’, 10) is the same as xxxxxxxxxx.
If the terminal has a settable command character, such as the Tektronix 4025, this can be indicated with
cmdch. A prototype command character is chosen which is used in all capabilities. This character is given
in the cmdch capability to identify it. The following convention is supported on some systems: If the
environment variable CC exists, all occurrences of the prototype character are replaced with the character
in CC.
Terminal descriptions that do not represent a specific kind of known terminal, such as switch, dialup,
patch, and network, should include the gn (generic) capability so that programs can complain that they do
not know how to talk to the terminal. (This capability does not apply to virtual terminal descriptions for
which the escape sequences are known.) If the terminal is one of those supported by the virtual terminal
protocol, the terminal number can be given as vt. A line-turn-around sequence to be transmitted before
doing reads should be specified in rfi.
If the device uses XON/XOFF handshaking for flow control, give xon. Padding information should still be
included so that functions can make better decisions about costs, but actual pad characters will not be
transmitted. Sequences to turn on and off XON/XOFF handshaking may be given in smxon and rmxon.If
the characters used for handshaking are not ˆS and ˆQ, they may be specified with xonc and xoffc.
If the terminal has a "meta key" which acts as a shift key, setting the 8th bit of any character transmitted,
this fact can be indicated with km. Otherwise, software will assume that the 8th bit is parity and it will
usually be cleared. If strings exist to turn this "meta mode" on and off, they can be given as smm and rmm.
If the terminal has more lines of memory than will fit on the screen at once, the number of lines of memory
can be indicated with lm. A value of lm#0 indicates that the number of lines is not fixed, but that there is
still more memory than fits on the screen.
HP-UX 11i Version 3: February 2007 − 25 − Hewlett-Packard Company 509