HP-UX Reference (11i v1 05/09) - 4 File Formats (vol 8)

t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
alias1 | alias2 | ... | aliasn | longname,
whitespace am, lines #24,
whitespace home=\Eeh,
The first line, commonly referred to as the header line, must begin in column one and must contain at least
two aliases separated by vertical bars. The last field in the header line must be the long name of the device
and it may contain any string.
Alias names must be unique in the terminfo database and they must conform to file naming conventions
established by implementation-specific terminfo compilation utilities. Implementations will recognize
alias names consisting only of characters from the portable file name character set except that implementa-
tions need not accept a first character of minus (-). For example, a typical restriction is that they cannot
contain white space or slashes. There may be further constraints imposed on source file values by the
implementation-specific terminfo compilation utilities.
Each capability in terminfo is of one of the following types:
Boolean capabilities show that a device has or does not have a particular feature.
Numeric capabilities quantify particular features of a device.
String capabilities provide sequences that can be used to perform particular operations on devices.
Capability names adhere to an informal length limit of five characters. Whenever possible, capability
names are chosen to be the same as or similar to those specified by the ANSI X3.64-1979 standard. Seman-
tics are also intended to match those of the ANSI standard.
All string capabilities may have padding specified, with the exception of those used for input. Input capa-
bilities, listed under the Strings section in the following tables, have names beginning with key_. These
capabilities are defined in <term.h>.
Minimum Guaranteed Limits
All X/Open-compliant implementations support at least the following limits for the terminfo source file:
Source File Characteristic Minimum Guaranteed Value
Length of a line 1023 bytes
Length of a terminal alias 14 bytes
Length of a terminal model name 128 bytes
Width of a single field 128 bytes
Length of a string value 1000 bytes
Length of a string representing a numeric value 99 digits
Magnitude of a numeric value 0 up to and including 32767
An implementation may support higher limits than those specified above.
Formal Grammar
The grammar and lexical conventions in this section together describe the syntax for terminfo terminal
descriptions within a terminfo source file. A terminal description that satisfies the requirements of this
section will be accepted by all implementations. (The notation "(n)" refers to a note following the descrip-
tion.)
descriptions : START_OF_HEADER_LINE (1) rest_of_header_line feature_lines
| descriptions START_OF_HEADER_LINE rest_of_header_line
| feature_lines
;
rest_of_header_line : PIPE LONGNAME COMMA NEWLINE
| aliases PIPE LONGNAME COMMA NEWLINE
;
feature_lines : start_feature_line rest_of_feature_line
| feature_lines start_feature_line rest_of_feature_line
;
start_feature_line : START_FEATURE_LINE_BOOLEAN (2)
| START_FEATURE_LINE_NUMERIC (3)
| START_FEATURE_LINE_STRING (4)
;
Section 4328 Hewlett-Packard Company 2 HP-UX 11i Version 1: September 2005