blob: c4cc072baeb05461da82805ab8e1cbfcee7f73db [file] [log] [blame]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05301.\"***************************************************************************
Steve Kondikae271bc2015-11-15 02:50:53 +01002.\" Copyright (c) 1998-2012,2013 Free Software Foundation, Inc. *
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05303.\" *
4.\" Permission is hereby granted, free of charge, to any person obtaining a *
5.\" copy of this software and associated documentation files (the *
6.\" "Software"), to deal in the Software without restriction, including *
7.\" without limitation the rights to use, copy, modify, merge, publish, *
8.\" distribute, distribute with modifications, sublicense, and/or sell *
9.\" copies of the Software, and to permit persons to whom the Software is *
10.\" furnished to do so, subject to the following conditions: *
11.\" *
12.\" The above copyright notice and this permission notice shall be included *
13.\" in all copies or substantial portions of the Software. *
14.\" *
15.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
16.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
17.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
18.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
19.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
20.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
21.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
22.\" *
23.\" Except as contained in this notice, the name(s) of the above copyright *
24.\" holders shall not be used in advertising or otherwise to promote the *
25.\" sale, use or other dealings in this Software without prior written *
26.\" authorization. *
27.\"***************************************************************************
28.\"
Steve Kondikae271bc2015-11-15 02:50:53 +010029.\" $Id: terminfo.head,v 1.21 2013/03/09 22:11:36 tom Exp $
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053030.TH terminfo 5 "" "" "File Formats"
31.ds n 5
32.ds d @TERMINFO@
Steve Kondikae271bc2015-11-15 02:50:53 +010033.ie \n(.g .ds `` \(lq
34.el .ds `` ``
35.ie \n(.g .ds '' \(rq
36.el .ds '' ''
37.de bP
38.IP \(bu 4
39..
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053040.SH NAME
41terminfo \- terminal capability data base
42.SH SYNOPSIS
43\*d/*/*
44.SH DESCRIPTION
45.I Terminfo
46is a data base describing terminals, used by screen-oriented programs such as
47\fBnvi\fR(1),
48\fBrogue\fR(1)
49and libraries such as
50\fBcurses\fR(3X).
51.I Terminfo
52describes terminals by giving a set of capabilities which they
53have, by specifying how to perform screen operations, and by
54specifying padding requirements and initialization sequences.
55This describes \fBncurses\fR
56version @NCURSES_MAJOR@.@NCURSES_MINOR@ (patch @NCURSES_PATCH@).
57.PP
58Entries in
59.I terminfo
60consist of a sequence of `,' separated fields (embedded commas may be
61escaped with a backslash or notated as \\054).
62White space after the `,' separator is ignored.
63The first entry for each terminal gives the names which are known for the
64terminal, separated by `|' characters.
65The first name given is the most common abbreviation for the terminal,
66the last name given should be a long name fully identifying the terminal,
67and all others are understood as synonyms for the terminal name.
68All names but the last should be in lower case and contain no blanks;
69the last name may well contain upper case and blanks for readability.
70.PP
71Lines beginning with a `#' in the first column are treated as comments.
72While comment lines are legal at any point, the output of \fB@CAPTOINFO@\fP
73and \fB@INFOTOCAP@\fP (aliases for \fB@TIC@\fP)
74will move comments so they occur only between entries.
75.PP
76Newlines and leading tabs may be used for formatting entries for readability.
77These are removed from parsed entries.
Steve Kondikae271bc2015-11-15 02:50:53 +010078The \fB@INFOCMP@\ \-f\fP option relies on this to format if-then-else expressions:
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053079the result can be read by \fB@TIC@\fP.
80.PP
81Terminal names (except for the last, verbose entry) should
82be chosen using the following conventions.
83The particular piece of hardware making up the terminal should
Steve Kondikae271bc2015-11-15 02:50:53 +010084have a root name, thus \*(``hp2621\*(''.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053085This name should not contain hyphens.
86Modes that the hardware can be in, or user preferences, should
87be indicated by appending a hyphen and a mode suffix.
Steve Kondikae271bc2015-11-15 02:50:53 +010088Thus, a vt100 in 132 column mode would be vt100\-w.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053089The following suffixes should be used where possible:
90.PP
91.TS
92center ;
93l c l
94l l l.
95\fBSuffix Meaning Example\fP
Steve Kondikae271bc2015-11-15 02:50:53 +010096\-\fInn\fP Number of lines on the screen aaa\-60
97\-\fIn\fPp Number of pages of memory c100\-4p
98\-am With automargins (usually the default) vt100\-am
99\-m Mono mode; suppress color ansi\-m
100\-mc Magic cookie; spaces when highlighting wy30\-mc
101\-na No arrow keys (leave them in local) c100\-na
102\-nam Without automatic margins vt100\-nam
103\-nl No status line att4415\-nl
104\-ns No status line hp2626\-ns
105\-rv Reverse video c100\-rv
106\-s Enable status line vt100\-s
107\-vb Use visible bell instead of beep wy370\-vb
108\-w Wide mode (> 80 columns, usually 132) vt100\-w
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530109.TE
110.PP
111For more on terminal naming conventions, see the \fBterm(7)\fR manual page.
Steve Kondikae271bc2015-11-15 02:50:53 +0100112.SS Predefined Capabilities
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530113.\" Head of terminfo man page ends here
114.ps -1