terminfo.4 (2010 09)

t
terminfo(4) terminfo(4)
(ENHANCED CURSES)
NAME
terminfo - printer, terminal, and modem capability database
SYNOPSIS
/usr/lib/terminfo/?/*
DESCRIPTION
The requirements in this manpage are in effect only for implementations that claim Enhanced Curses
compliance.
List of Section Headings in DESCRIPTION
Terminfo Source Format
Source File Syntax
Minimum Guaranteed Limits
Formal Grammar
Defined Capabilities
Sample Entry
Types of Capabilities in the Sample Entry
Device Capabilities
Insert/Delete Line
Printer Capabilities
Capabilities that Cause Movement
Alternate Character Sets
Dot-Matrix Graphics
Effect of Changing Printing Resolution
Selecting a Terminal
Application Usage
Terminfo Source Format
The terminfo database contains a description of the capabilities of a variety of devices, such as termi-
nals and printers. Devices are described by specifying a set of capabilities, by quantifying certain aspects
of the device, and by specifying character sequences that effect particular results.
This manpage specifies the format of terminfo source files.
X/Open-compliant implementations must provide a facility that accepts source files in the format specified
in this manpage as a means of entering information into the terminfo database. The facility for instal-
ling this information into the database is implementation-specific. A valid terminfo entry describing a
given model of terminal can be added to terminfo on any X/Open-compliant implementation to permit
use of the same terminal model.
The Source File Syntax section describes the syntax of terminfo source files. A grammar and lexical
conventions appear in the Formal Grammar section below. A list of all terminal capabilities defined by
X/Open appears in the Defined Capabilities section below. An example follows in the Sample Entry sec-
tion below. The Device Capabilities section describes the specification of devices in general, such as video
terminals. The Printer Capabilities section describes the specification of printers.
The terminfo database is often used by screen-oriented applications such as vi and Curses programs,
as well as by some utilities such as ls and more. This usage allows them to work with a variety of dev-
ices without changes to the programs.
Source File Syntax
Source files can use the ISO 8859-1 codeset. The behavior when the source file is in another codeset is
unspecified. Traditional practice has been to translate information from other codesets into the source file
syntax.
terminfo source files consist of one or more device descriptions. Each description defines a mnemonic
name for the terminal model. Each description consists of a header (beginning in column 1) and one or
more lines that list the features for that particular device. Every line in a terminfo source file must
end in a comma. Every line in a terminfo source file except the header must be indented with one or
more white spaces (either spaces or tabs).
Entries in terminfo source files consist of a number of comma-separated fields. White space after each
comma is ignored. Embedded commas must be escaped by using a backslash. The following example
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (38 pages)