Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 1 | .\"*************************************************************************** |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 2 | .\" Copyright (c) 1998-2012,2013 Free Software Foundation, Inc. * |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 3 | .\" * |
| 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 Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 29 | .\" $Id: terminfo.head,v 1.21 2013/03/09 22:11:36 tom Exp $ |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 30 | .TH terminfo 5 "" "" "File Formats" |
| 31 | .ds n 5 |
| 32 | .ds d @TERMINFO@ |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 33 | .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 Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 40 | .SH NAME |
| 41 | terminfo \- terminal capability data base |
| 42 | .SH SYNOPSIS |
| 43 | \*d/*/* |
| 44 | .SH DESCRIPTION |
| 45 | .I Terminfo |
| 46 | is a data base describing terminals, used by screen-oriented programs such as |
| 47 | \fBnvi\fR(1), |
| 48 | \fBrogue\fR(1) |
| 49 | and libraries such as |
| 50 | \fBcurses\fR(3X). |
| 51 | .I Terminfo |
| 52 | describes terminals by giving a set of capabilities which they |
| 53 | have, by specifying how to perform screen operations, and by |
| 54 | specifying padding requirements and initialization sequences. |
| 55 | This describes \fBncurses\fR |
| 56 | version @NCURSES_MAJOR@.@NCURSES_MINOR@ (patch @NCURSES_PATCH@). |
| 57 | .PP |
| 58 | Entries in |
| 59 | .I terminfo |
| 60 | consist of a sequence of `,' separated fields (embedded commas may be |
| 61 | escaped with a backslash or notated as \\054). |
| 62 | White space after the `,' separator is ignored. |
| 63 | The first entry for each terminal gives the names which are known for the |
| 64 | terminal, separated by `|' characters. |
| 65 | The first name given is the most common abbreviation for the terminal, |
| 66 | the last name given should be a long name fully identifying the terminal, |
| 67 | and all others are understood as synonyms for the terminal name. |
| 68 | All names but the last should be in lower case and contain no blanks; |
| 69 | the last name may well contain upper case and blanks for readability. |
| 70 | .PP |
| 71 | Lines beginning with a `#' in the first column are treated as comments. |
| 72 | While comment lines are legal at any point, the output of \fB@CAPTOINFO@\fP |
| 73 | and \fB@INFOTOCAP@\fP (aliases for \fB@TIC@\fP) |
| 74 | will move comments so they occur only between entries. |
| 75 | .PP |
| 76 | Newlines and leading tabs may be used for formatting entries for readability. |
| 77 | These are removed from parsed entries. |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 78 | The \fB@INFOCMP@\ \-f\fP option relies on this to format if-then-else expressions: |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 79 | the result can be read by \fB@TIC@\fP. |
| 80 | .PP |
| 81 | Terminal names (except for the last, verbose entry) should |
| 82 | be chosen using the following conventions. |
| 83 | The particular piece of hardware making up the terminal should |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 84 | have a root name, thus \*(``hp2621\*(''. |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 85 | This name should not contain hyphens. |
| 86 | Modes that the hardware can be in, or user preferences, should |
| 87 | be indicated by appending a hyphen and a mode suffix. |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 88 | Thus, a vt100 in 132 column mode would be vt100\-w. |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 89 | The following suffixes should be used where possible: |
| 90 | .PP |
| 91 | .TS |
| 92 | center ; |
| 93 | l c l |
| 94 | l l l. |
| 95 | \fBSuffix Meaning Example\fP |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 96 | \-\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 Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 109 | .TE |
| 110 | .PP |
| 111 | For more on terminal naming conventions, see the \fBterm(7)\fR manual page. |
Steve Kondik | ae271bc | 2015-11-15 02:50:53 +0100 | [diff] [blame] | 112 | .SS Predefined Capabilities |
Amit Daniel Kachhap | e6a01f5 | 2011-07-20 11:45:59 +0530 | [diff] [blame] | 113 | .\" Head of terminfo man page ends here |
| 114 | .ps -1 |