blob: 8a3fef28e7c5dc5dfb4e9fa828405e13478313e1 [file] [log] [blame]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05301'\" t
2.\"***************************************************************************
Steve Kondikae271bc2015-11-15 02:50:53 +01003.\" Copyright (c) 1998-2014,2015 Free Software Foundation, Inc. *
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +05304.\" *
5.\" Permission is hereby granted, free of charge, to any person obtaining a *
6.\" copy of this software and associated documentation files (the *
7.\" "Software"), to deal in the Software without restriction, including *
8.\" without limitation the rights to use, copy, modify, merge, publish, *
9.\" distribute, distribute with modifications, sublicense, and/or sell *
10.\" copies of the Software, and to permit persons to whom the Software is *
11.\" furnished to do so, subject to the following conditions: *
12.\" *
13.\" The above copyright notice and this permission notice shall be included *
14.\" in all copies or substantial portions of the Software. *
15.\" *
16.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19.\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20.\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21.\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23.\" *
24.\" Except as contained in this notice, the name(s) of the above copyright *
25.\" holders shall not be used in advertising or otherwise to promote the *
26.\" sale, use or other dealings in this Software without prior written *
27.\" authorization. *
28.\"***************************************************************************
29.\"
Steve Kondikae271bc2015-11-15 02:50:53 +010030.\" $Id: infocmp.1m,v 1.56 2015/05/23 20:50:00 tom Exp $
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053031.TH @INFOCMP@ 1M ""
32.ds n 5
Steve Kondikae271bc2015-11-15 02:50:53 +010033.de bP
34.IP \(bu 4
35..
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053036.ds d @TERMINFO@
37.SH NAME
Steve Kondikae271bc2015-11-15 02:50:53 +010038\fB@INFOCMP@\fR \- compare or print out \fIterminfo\fR descriptions
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053039.SH SYNOPSIS
Steve Kondikae271bc2015-11-15 02:50:53 +010040\fB@INFOCMP@\fR [\fB\-\
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530411\
42C\
Steve Kondikae271bc2015-11-15 02:50:53 +010043D\
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053044E\
45F\
46G\
47I\
Steve Kondikae271bc2015-11-15 02:50:53 +010048K\
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053049L\
50T\
51U\
52V\
53c\
54d\
55e\
56g\
57i\
58l\
59n\
60p\
61q\
62r\
63t\
64u\
65x\
66\fR]
67.br
Steve Kondikae271bc2015-11-15 02:50:53 +010068 [\fB\-v\fR \fIn\fR] [\fB\-s d\fR| \fBi\fR| \fBl\fR| \fBc\fR] [\fB\-R \fR\fBsubset\fR]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053069.br
Steve Kondikae271bc2015-11-15 02:50:53 +010070 [\fB\-w\fR\ \fIwidth\fR] [\fB\-A\fR\ \fIdirectory\fR] [\fB\-B\fR\ \fIdirectory\fR]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053071.br
72 [\fItermname\fR...]
73.SH DESCRIPTION
74\fB@INFOCMP@\fR can be used to compare a binary \fBterminfo\fR entry with other
75terminfo entries, rewrite a \fBterminfo\fR description to take advantage of the
76\fBuse=\fR terminfo field, or print out a \fBterminfo\fR description from the
Steve Kondikae271bc2015-11-15 02:50:53 +010077binary file (\fBterm\fR) in a variety of formats.
78In all cases, the boolean
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053079fields will be printed first, followed by the numeric fields, followed by the
80string fields.
81.SS Default Options
82If no options are specified and zero or one \fItermnames\fR are specified, the
Steve Kondikae271bc2015-11-15 02:50:53 +010083\fB\-I\fR option will be assumed.
84If more than one \fItermname\fR is specified,
85the \fB\-d\fR option will be assumed.
86.SS Comparison Options [\-d] [\-c] [\-n]
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053087\fB@INFOCMP@\fR compares the \fBterminfo\fR description of the first terminal
88\fItermname\fR with each of the descriptions given by the entries for the other
Steve Kondikae271bc2015-11-15 02:50:53 +010089terminal's \fItermnames\fR.
90If a capability is defined for only one of the
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053091terminals, the value returned will depend on the type of the capability:
Steve Kondikae271bc2015-11-15 02:50:53 +010092\fBF\fR for boolean variables, \fB\-1\fR for integer variables, and \fBNULL\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053093for string variables.
94.PP
Steve Kondikae271bc2015-11-15 02:50:53 +010095The \fB\-d\fR option produces a list of each capability that is different
96between two entries.
97This option is useful to show the difference between two
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +053098entries, created by different people, for the same or similar terminals.
99.PP
Steve Kondikae271bc2015-11-15 02:50:53 +0100100The \fB\-c\fR option produces a list of each capability that is common between
101two or more entries.
102Capabilities that are not set are ignored.
103This option can be
104used as a quick check to see if the \fB\-u\fR option is worth using.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530105.PP
Steve Kondikae271bc2015-11-15 02:50:53 +0100106The \fB\-n\fR option produces a list of each capability that is in none of
107the given entries.
108If no \fItermnames\fR are given, the environment variable \fBTERM\fR
109will be used for both of the \fItermnames\fR.
110This can be used as a quick
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530111check to see if anything was left out of a description.
Steve Kondikae271bc2015-11-15 02:50:53 +0100112.SS Source Listing Options [\-I] [\-L] [\-C] [\-r]
113The \fB\-I\fR, \fB\-L\fR, and \fB\-C\fR options will produce a source listing for
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530114each terminal named.
115.
116.TS
117center tab(/) ;
118l l .
Steve Kondikae271bc2015-11-15 02:50:53 +0100119\fB\-I\fR/use the \fBterminfo\fR names
120\fB\-L\fR/use the long C variable name listed in <\fBterm.h\fR>
121\fB\-C\fR/use the \fBtermcap\fR names
122\fB\-r\fR/when using \fB\-C\fR, put out all capabilities in \fBtermcap\fR form
123\fB\-K\fR/modifies the \fB\-C\fP option, improving BSD-compatibility.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530124.TE
125.PP
126If no \fItermnames\fR are given, the environment variable \fBTERM\fR will be
127used for the terminal name.
128.PP
Steve Kondikae271bc2015-11-15 02:50:53 +0100129The source produced by the \fB\-C\fR option may be used directly as a
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530130\fBtermcap\fR entry, but not all parameterized strings can be changed to
Steve Kondikae271bc2015-11-15 02:50:53 +0100131the \fBtermcap\fR format.
132\fB@INFOCMP@\fR will attempt to convert most of the
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530133parameterized information, and anything not converted will be plainly marked in
Steve Kondikae271bc2015-11-15 02:50:53 +0100134the output and commented out.
135These should be edited by hand.
136.PP
137For best results when converting to \fBtermcap\fP format,
138you should use both \fB\-C\fP and \fB\-r\fP.
139Normally a termcap description is limited to 1023 bytes.
140@INFOCMP@ trims away less essential parts to make it fit.
141If you are converting to one of the (rare) termcap implementations
142which accept an unlimited size of termcap,
143you may want to add the \fB\-T\fP option.
144More often however, you must help the termcap implementation,
145and trim excess whitespace (use the \fB\-0\fP option for that).
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530146.PP
147All padding information for strings will be collected together and placed
Steve Kondikae271bc2015-11-15 02:50:53 +0100148at the beginning of the string where \fBtermcap\fR expects it.
149Mandatory
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530150padding (padding information with a trailing '/') will become optional.
151.PP
152All \fBtermcap\fR variables no longer supported by \fBterminfo\fR, but which
Steve Kondikae271bc2015-11-15 02:50:53 +0100153are derivable from other \fBterminfo\fR variables, will be output.
154Not all
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530155\fBterminfo\fR capabilities will be translated; only those variables which were
Steve Kondikae271bc2015-11-15 02:50:53 +0100156part of \fBtermcap\fR will normally be output.
157Specifying the \fB\-r\fR option
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530158will take off this restriction, allowing all capabilities to be output in
159\fItermcap\fR form.
Steve Kondikae271bc2015-11-15 02:50:53 +0100160Normally you would use both the \fB\-C\fP and \fB\-r\fP options.
161The actual format used incorporates some improvements for escaped characters
162from terminfo format.
163For a stricter BSD-compatible translation, use the \fB\-K\fR option
164rather than \fB\-C\fP.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530165.PP
166Note that because padding is collected to the beginning of the capability, not
Steve Kondikae271bc2015-11-15 02:50:53 +0100167all capabilities are output.
168Mandatory padding is not supported.
169Because
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530170\fBtermcap\fR strings are not as flexible, it is not always possible to convert
Steve Kondikae271bc2015-11-15 02:50:53 +0100171a \fBterminfo\fR string capability into an equivalent \fBtermcap\fR format.
172A subsequent conversion of the \fBtermcap\fR file back into \fBterminfo\fR format
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530173will not necessarily reproduce the original \fBterminfo\fR
174source.
175.PP
176Some common \fBterminfo\fR parameter sequences, their \fBtermcap\fR
177equivalents, and some terminal types which commonly have such sequences, are:
178.
179.TS
180center tab(/) ;
181l c l
182l l l.
183\fBterminfo/termcap\fR/Representative Terminals
184=
185\fB%p1%c/%.\fR/adm
186\fB%p1%d/%d\fR/hp, ANSI standard, vt100
187\fB%p1%'x'%+%c/%+x\fR/concept
188\fB%i/%i\fRq/ANSI standard, vt100
189\fB%p1%?%'x'%>%t%p1%'y'%+%;/%>xy\fR/concept
190\fB%p2\fR is printed before \fB%p1/%r\fR/hp
191.TE
Steve Kondikae271bc2015-11-15 02:50:53 +0100192.SS Use= Option [\-u]
193The \fB\-u\fR option produces a \fBterminfo\fR source description of the first
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530194terminal \fItermname\fR which is relative to the sum of the descriptions given
Steve Kondikae271bc2015-11-15 02:50:53 +0100195by the entries for the other terminals \fItermnames\fR.
196It does this by
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530197analyzing the differences between the first \fItermname\fR and the other
198\fItermnames\fR and producing a description with \fBuse=\fR fields for the
Steve Kondikae271bc2015-11-15 02:50:53 +0100199other terminals.
200In this manner, it is possible to retrofit generic terminfo
201entries into a terminal's description.
202Or, if two similar terminals exist, but
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530203were coded at different times or by different people so that each description
204is a full description, using \fB@INFOCMP@\fR will show what can be done to change
205one description to be relative to the other.
206.PP
207A capability will get printed with an at-sign (@) if it no longer exists in the
208first \fItermname\fR, but one of the other \fItermname\fR entries contains a
Steve Kondikae271bc2015-11-15 02:50:53 +0100209value for it.
210A capability's value gets printed if the value in the first
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530211\fItermname\fR is not found in any of the other \fItermname\fR entries, or if
212the first of the other \fItermname\fR entries that has this capability gives a
213different value for the capability than that in the first \fItermname\fR.
214.PP
Steve Kondikae271bc2015-11-15 02:50:53 +0100215The order of the other \fItermname\fR entries is significant.
216Since the
217terminfo compiler \fB@TIC@\fR does a left-to-right scan of the capabilities,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530218specifying two \fBuse=\fR entries that contain differing entries for the same
219capabilities will produce different results depending on the order that the
Steve Kondikae271bc2015-11-15 02:50:53 +0100220entries are given in.
221\fB@INFOCMP@\fR will flag any such inconsistencies between
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530222the other \fItermname\fR entries as they are found.
223.PP
224Alternatively, specifying a capability \fIafter\fR a \fBuse=\fR entry that
225contains that capability will cause the second specification to be ignored.
226Using \fB@INFOCMP@\fR to recreate a description can be a useful check to make
227sure that everything was specified correctly in the original source
228description.
229.PP
230Another error that does not cause incorrect compiled files, but will slow down
231the compilation time, is specifying extra \fBuse=\fR fields that are
Steve Kondikae271bc2015-11-15 02:50:53 +0100232superfluous.
233\fB@INFOCMP@\fR will flag any other \fItermname use=\fR fields that
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530234were not needed.
Steve Kondikae271bc2015-11-15 02:50:53 +0100235.SS Changing Databases [\-A \fIdirectory\fR] [\-B \fIdirectory\fR]
236Like other \fBncurses\fP utilities,
237@INFOCMP@ looks for the terminal descriptions in several places.
238You can use the \fBTERMINFO\fP and \fBTERMINFO_DIRS\fP environment variables
239to override the compiled-in default list of places to search
240(see \fBcurses\fP(3X) for details).
241.PP
242You can also use the options \fB\-A\fR
243and \fB\-B\fR to override the list of places to search
244when comparing terminal descriptions:
245.bP
246The \fB\-A\fR option sets the location for the first \fItermname\fR
247.bP
248The \fB\-B\fR option sets the location for the other \fItermnames\fR.
249.PP
250Using these options, it is possible to
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530251compare descriptions for a terminal with the same name located in two different
Steve Kondikae271bc2015-11-15 02:50:53 +0100252databases.
253For instance,
254you can use this feature for comparing descriptions for the same terminal
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530255created by different people.
256.SS Other Options
257.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100258\fB\-0\fR
259causes the fields to be printed on one line, without wrapping.
260.TP 5
261\fB\-1\fR
262causes the fields to be printed out one to a line.
263Otherwise,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530264the fields will be printed several to a line to a maximum width
265of 60 characters.
266.TP
Steve Kondikae271bc2015-11-15 02:50:53 +0100267\fB\-a\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530268tells \fB@INFOCMP@\fP to retain commented-out capabilities rather than discarding
Steve Kondikae271bc2015-11-15 02:50:53 +0100269them.
270Capabilities are commented by prefixing them with a period.
271.TP
272\fB\-D\fR
273tells \fB@INFOCMP@\fP to print the database locations that it knows about, and exit.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530274.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100275\fB\-E\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530276Dump the capabilities of the given terminal as tables, needed in
277the C initializer for a
278TERMTYPE structure (the terminal capability structure in the \fB<term.h>\fR).
279This option is useful for preparing versions of the curses library hardwired
280for a given terminal type.
281The tables are all declared static, and are named according to the type
282and the name of the corresponding terminal entry.
283.sp
Steve Kondikae271bc2015-11-15 02:50:53 +0100284Before ncurses 5.0, the split between the \fB\-e\fP and \fB\-E\fP
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530285options was not needed; but support for extended names required making
286the arrays of terminal capabilities separate from the TERMTYPE structure.
287.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100288\fB\-e\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530289Dump the capabilities of the given terminal as a C initializer for a
290TERMTYPE structure (the terminal capability structure in the \fB<term.h>\fR).
291This option is useful for preparing versions of the curses library hardwired
292for a given terminal type.
293.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100294\fB\-F\fR
295compare terminfo files.
296This assumes that two following arguments are filenames.
297The files are searched for pairwise matches between
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530298entries, with two entries considered to match if any of their names do.
299The report printed to standard output lists entries with no matches in
Steve Kondikae271bc2015-11-15 02:50:53 +0100300the other file, and entries with more than one match.
301For entries
302with exactly one match it includes a difference report.
303Normally,
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530304to reduce the volume of the report, use references are
305not resolved before looking for differences, but resolution can be forced
Steve Kondikae271bc2015-11-15 02:50:53 +0100306by also specifying \fB\-r\fR.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530307.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100308\fB\-f\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530309Display complex terminfo strings which contain if/then/else/endif expressions
310indented for readability.
311.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100312\fB\-G\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530313Display constant literals in decimal form
314rather than their character equivalents.
315.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100316\fB\-g\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530317Display constant character literals in quoted form
318rather than their decimal equivalents.
319.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100320\fB\-i\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530321Analyze the initialization (\fBis1\fR, \fBis2\fR, \fBis3\fR), and reset
Steve Kondikae271bc2015-11-15 02:50:53 +0100322(\fBrs1\fR, \fBrs2\fR, \fBrs3\fR), strings in the entry,
323as well as those used for starting/stopping cursor-positioning mode
324(\fBsmcup\fP, \fBrmcup\fP) as well as starting/stopping keymap mode
325(\fBsmkx\fP, \fBrmkx\fP).
326.IP
327For each string, the
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530328code tries to analyze it into actions in terms of the other capabilities in the
Steve Kondikae271bc2015-11-15 02:50:53 +0100329entry, certain X3.64/ISO 6429/ECMA\-48 capabilities, and certain DEC VT-series
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530330private modes (the set of recognized special sequences has been selected for
Steve Kondikae271bc2015-11-15 02:50:53 +0100331completeness over the existing terminfo database).
332Each report line consists
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530333of the capability name, followed by a colon and space, followed by a printable
334expansion of the capability string with sections matching recognized actions
Steve Kondikae271bc2015-11-15 02:50:53 +0100335translated into {}-bracketed descriptions.
336.IP
337Here is a list of the DEC/ANSI
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530338special sequences recognized:
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530339.TS
340center tab(/) ;
341l l
342l l.
343Action/Meaning
344=
345RIS/full reset
346SC/save cursor
347RC/restore cursor
348LL/home-down
349RSR/reset scroll region
350=
351DECSTR/soft reset (VT320)
352S7C1T/7-bit controls (VT220)
353=
354ISO DEC G0/enable DEC graphics for G0
355ISO UK G0/enable UK chars for G0
356ISO US G0/enable US chars for G0
357ISO DEC G1/enable DEC graphics for G1
358ISO UK G1/enable UK chars for G1
359ISO US G1/enable US chars for G1
360=
361DECPAM/application keypad mode
362DECPNM/normal keypad mode
363DECANSI/enter ANSI mode
364=
Steve Kondikae271bc2015-11-15 02:50:53 +0100365ECMA[+\-]AM/keyboard action mode
366ECMA[+\-]IRM/insert replace mode
367ECMA[+\-]SRM/send receive mode
368ECMA[+\-]LNM/linefeed mode
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530369=
Steve Kondikae271bc2015-11-15 02:50:53 +0100370DEC[+\-]CKM/application cursor keys
371DEC[+\-]ANM/set VT52 mode
372DEC[+\-]COLM/132-column mode
373DEC[+\-]SCLM/smooth scroll
374DEC[+\-]SCNM/reverse video mode
375DEC[+\-]OM/origin mode
376DEC[+\-]AWM/wraparound mode
377DEC[+\-]ARM/auto-repeat mode
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530378.TE
379.sp
380It also recognizes a SGR action corresponding to ANSI/ISO 6429/ECMA Set
381Graphics Rendition, with the values NORMAL, BOLD, UNDERLINE, BLINK, and
Steve Kondikae271bc2015-11-15 02:50:53 +0100382REVERSE.
383All but NORMAL may be prefixed with `+' (turn on) or `\-' (turn off).
384.IP
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530385An SGR0 designates an empty highlight sequence (equivalent to {SGR:NORMAL}).
386.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100387\fB\-l\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530388Set output format to terminfo.
389.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100390\fB\-p\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530391Ignore padding specifications when comparing strings.
392.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100393\fB\-q\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530394Make the comparison listing shorter by omitting subheadings, and using
Steve Kondikae271bc2015-11-15 02:50:53 +0100395"\-" for absent capabilities, "@" for canceled rather than "NULL".
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530396.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100397\fB\-R\fR\fIsubset\fR
398Restrict output to a given subset.
399This option is for use with archaic
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530400versions of terminfo like those on SVr1, Ultrix, or HP/UX that do not support
401the full set of SVR4/XSI Curses terminfo; and variants such as AIX
Steve Kondikae271bc2015-11-15 02:50:53 +0100402that have their own extensions incompatible with SVr4/XSI.
403.IP
404Available terminfo
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530405subsets are "SVr1", "Ultrix", "HP", and "AIX"; see \fBterminfo\fR(\*n) for
Steve Kondikae271bc2015-11-15 02:50:53 +0100406details.
407You can also choose the subset "BSD" which selects only capabilities
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530408with termcap equivalents recognized by 4.4BSD.
409.TP
Steve Kondikae271bc2015-11-15 02:50:53 +0100410\fB\-s \fR\fI[d|i|l|c]\fR
411The \fB\-s\fR option sorts the fields within each type according to the argument
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530412below:
413.br
414.RS 5
415.TP 5
416\fBd\fR
417leave fields in the order that they are stored in the \fIterminfo\fR database.
418.TP 5
419\fBi\fR
420sort by \fIterminfo\fR name.
421.TP 5
422\fBl\fR
423sort by the long C variable name.
424.TP 5
425\fBc\fR
426sort by the \fItermcap\fR name.
427.RE
428.IP
Steve Kondikae271bc2015-11-15 02:50:53 +0100429If the \fB\-s\fR option is not given, the fields printed out will be
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530430sorted alphabetically by the \fBterminfo\fR name within each type,
Steve Kondikae271bc2015-11-15 02:50:53 +0100431except in the case of the \fB\-C\fR or the \fB\-L\fR options, which cause the
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530432sorting to be done by the \fBtermcap\fR name or the long C variable
433name, respectively.
434.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100435\fB\-T\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530436eliminates size-restrictions on the generated text.
437This is mainly useful for testing and analysis, since the compiled
438descriptions are limited (e.g., 1023 for termcap, 4096 for terminfo).
439.TP
Steve Kondikae271bc2015-11-15 02:50:53 +0100440\fB\-t\fR
441tells \fB@TIC@\fP to discard commented-out capabilities.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530442Normally when translating from terminfo to termcap,
443untranslatable capabilities are commented-out.
444.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100445\fB\-U\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530446tells \fB@INFOCMP@\fP to not post-process the data after parsing the source file.
447This feature helps when comparing the actual contents of two source files,
448since it excludes the inferences that \fB@INFOCMP@\fP makes to fill in missing
449data.
450.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100451\fB\-V\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530452reports the version of ncurses which was used in this program, and exits.
453.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100454\fB\-v\fR \fIn\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530455prints out tracing information on standard error as the program runs.
456Higher values of n induce greater verbosity.
457.TP 5
Steve Kondikae271bc2015-11-15 02:50:53 +0100458\fB\-w\fR \fIwidth\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530459changes the output to \fIwidth\fR characters.
460.TP
Steve Kondikae271bc2015-11-15 02:50:53 +0100461\fB\-x\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530462print information for user-defined capabilities.
463These are extensions to the terminfo repertoire which can be loaded
Steve Kondikae271bc2015-11-15 02:50:53 +0100464using the \fB\-x\fR option of \fB@TIC@\fP.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530465.SH FILES
466.TP 20
467\*d
468Compiled terminal description database.
469.SH EXTENSIONS
470The
Steve Kondikae271bc2015-11-15 02:50:53 +0100471\fB\-0\fR,
472\fB\-1\fR,
473\fB\-E\fR,
474\fB\-F\fR,
475\fB\-G\fR,
476\fB\-R\fR,
477\fB\-T\fR,
478\fB\-V\fR,
479\fB\-a\fR,
480\fB\-e\fR,
481\fB\-f\fR,
482\fB\-g\fR,
483\fB\-i\fR,
484\fB\-l\fR,
485\fB\-p\fR,
486\fB\-q\fR and
487\fB\-t\fR
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530488options are not supported in SVr4 curses.
489.PP
Steve Kondikae271bc2015-11-15 02:50:53 +0100490The \fB\-r\fR option's notion of `termcap' capabilities is System V Release 4's.
491Actual BSD curses versions will have a more restricted set.
492To see only the
4934.4BSD set, use \fB\-r\fR \fB\-RBSD\fR.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530494.SH BUGS
Steve Kondikae271bc2015-11-15 02:50:53 +0100495The \fB\-F\fR option of \fB@INFOCMP@\fR(1M) should be a \fB@TOE@\fR(1M) mode.
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530496.SH SEE ALSO
497\fB@CAPTOINFO@\fR(1M),
498\fB@INFOTOCAP@\fR(1M),
499\fB@TIC@\fR(1M),
500\fB@TOE@\fR(1M),
501\fBcurses\fR(3X),
502\fBterminfo\fR(\*n).
Steve Kondikae271bc2015-11-15 02:50:53 +0100503.sp
504http://invisible-island.net/ncurses/tctest.html
Amit Daniel Kachhape6a01f52011-07-20 11:45:59 +0530505.PP
506This describes \fBncurses\fR
507version @NCURSES_MAJOR@.@NCURSES_MINOR@ (patch @NCURSES_PATCH@).
508.SH AUTHOR
509Eric S. Raymond <esr@snark.thyrsus.com>
510and
511.br
512Thomas E. Dickey <dickey@invisible-island.net>