HP-UX Reference (11i v2 03/08) - 4 File Formats (vol 8)
t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
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 factor 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:
Notation Represents Character
^x Control-x (for any appropriate x)
\a Alert
\b Backspace
\E or \e An ESCAPE character
\f Form feed
\l Linefeed
\n Newline
\r Carriage return
\s Space
\t Tab
\ˆ Caret (ˆ)
\\ Backslash (\)
\, Comma (,)
\: Colon (:)
\0 Null
\nnn Any character, specified as three octal digits
(See the "X/Open System Interface Definitions, Issue 4, Version 2" specification, "General Terminal Inter-
face".)
Commented-Out Capabilities
Sometimes individual capabilities must be commented out. To do this, put a period before the capability
name. For example, see the second ind in the example in the "Sample Entry" section above. Note that
capabilities are defined in a left-to-right order and, therefore, a prior definition will override a later
definition.
Device Capabilities
Basic Capabilities
The number of columns on each line for the device is given by the cols numeric capability. If the device
has a screen, then the number of lines on the screen is given by the lines capability. If the device
wraps around to the beginning of the next line when it reaches the right margin, then it should have the
am capability. If the terminal can clear its screen, leaving the cursor in the home position, then this is
given by the clear string capability. If the terminal overstrikes (rather than clearing a position when a
character is struck over) then it should have the os capability. If the device is a printing terminal, with
no soft copy unit, specify both hc and os. If there is a way to move the cursor to the left edge of the
current row, specify this as cr. (Normally this will be carriage return, control-M.) If there is a way to
produce an audible signal (such as a bell or a beep), specify it as bel. If, like most devices, the device
Section 4−−324 Hewlett-Packard Company − 13 − HP-UX 11i Version 2: August 2003