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

t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
sgr0=\E[mˆO, smacs=ˆN, smir=\E[4h, smln=\E[p,
smso=\E[7m, smul=\E[4m, tsl=\E7\E[25;%i%p1%dx,
Types of Capabilities in the Sample Entry
The sample entry shows the formats for the three types of terminfo capabilities: boolean, numeric, and
string. All capabilities specified in the terminfo source file must be followed by commas, including the
last capability in the source file. In terminfo source files, capabilities are referenced by their capability
names (as shown in the Capname column of the previous tables).
Boolean Capabilities
A boolean capability is true if its Capname is present in the entry, and false if its Capname is not present
in the entry.
The "@" character following a Capname is used to explicitly declare that a boolean capability is false, in
situations described in the Similar Terminals subsection of the Insert/Delete Line section below.
Numeric Capabilities
Numeric capabilities are followed by the character "#" and then a positive integer value. The example
assigns the value 80 to the cols numeric capability by coding:
cols#80
Values for numeric capabilities may be specified in decimal, octal or hexadecimal, using normal C-language
conventions.
String Capabilities
String-valued capabilities such as el (clear to end of line sequence) are listed by the
Capname,an"=", and
a string ended by the next occurrence of a comma.
A delay in milliseconds may appear anywhere in such a capability, preceded by "$" and enclosed in angle
brackets, as in el=\EK$<3>. The Curses implementation achieves delays by outputting to the terminal an
appropriate number of system-defined padding characters. The tputs() function provides delays when
used to send such a capability to the terminal.
The delay can be any of the following: a number; a number followed by an asterisk, such as 5*; a number
followed by a slash, such as 5/; or a number followed by both, such as 5*/.
* Shows that the required delay is proportional to the number of lines affected by the operation, and
the amount given is the delay required per affected unit. (In the case of insert characters, the fac-
tor is still the number of lines affected. This is always 1 unless the device has in and the software
uses it.) When a "*" is specified, it is sometimes useful to give a delay of the form 3.5 to specify a
delay per unit to tenths of milliseconds. (Only one decimal place is allowed.)
/ Indicates that the delay is mandatory and padding characters are transmitted regardless of the
setting of xon.If"/" is not specified or if a device has xon defined, the delay information is
advisory and is only used for cost estimates or when the device is in raw mode. However, any
delay specified for bel or flash is treated as mandatory.
The following notation is valid in terminfo source files for specifying special characters:
HP-UX 11i Version 3: February 2007 15 Hewlett-Packard Company 499