]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/infocmp.1m
ncurses 6.4 - patch 20231001
[ncurses.git] / man / infocmp.1m
1 '\" t
2 .\"***************************************************************************
3 .\" Copyright 2018-2022,2023 Thomas E. Dickey                                *
4 .\" Copyright 1998-2017,2018 Free Software Foundation, Inc.                  *
5 .\"                                                                          *
6 .\" Permission is hereby granted, free of charge, to any person obtaining a  *
7 .\" copy of this software and associated documentation files (the            *
8 .\" "Software"), to deal in the Software without restriction, including      *
9 .\" without limitation the rights to use, copy, modify, merge, publish,      *
10 .\" distribute, distribute with modifications, sublicense, and/or sell       *
11 .\" copies of the Software, and to permit persons to whom the Software is    *
12 .\" furnished to do so, subject to the following conditions:                 *
13 .\"                                                                          *
14 .\" The above copyright notice and this permission notice shall be included  *
15 .\" in all copies or substantial portions of the Software.                   *
16 .\"                                                                          *
17 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  *
18 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               *
19 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   *
20 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   *
21 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    *
22 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    *
23 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               *
24 .\"                                                                          *
25 .\" Except as contained in this notice, the name(s) of the above copyright   *
26 .\" holders shall not be used in advertising or otherwise to promote the     *
27 .\" sale, use or other dealings in this Software without prior written       *
28 .\" authorization.                                                           *
29 .\"***************************************************************************
30 .\"
31 .\" $Id: infocmp.1m,v 1.95 2023/09/30 21:38:11 tom Exp $
32 .TH @INFOCMP@ 1M 2023-09-30 "ncurses 6.4" "User commands"
33 .ie \n(.g .ds `` \(lq
34 .el       .ds `` ``
35 .ie \n(.g .ds '' \(rq
36 .el       .ds '' ''
37 .ds n 5
38 .de bP
39 .ie n  .IP \(bu 4
40 .el    .IP \(bu 2
41 ..
42 .ie n .ds CW R
43 .el   \{
44 .ie \n(.g .ds CW CR
45 .el       .ds CW CW
46 .\}
47 .de NS
48 .ie n  .sp
49 .el    .sp .5
50 .ie n  .in +4
51 .el    .in +2
52 .nf
53 .ft \*(CW
54 ..
55 .de NE
56 .fi
57 .ft R
58 .ie n  .in -4
59 .el    .in -2
60 ..
61 .ds d @TERMINFO@
62 .SH NAME
63 \fB@INFOCMP@\fP \-
64 compare or print out \fIterminfo\fP descriptions
65 .SH SYNOPSIS
66 \fB@INFOCMP@\fP [\fB\-\
67 1\
68 C\
69 D\
70 E\
71 F\
72 G\
73 I\
74 K\
75 L\
76 T\
77 U\
78 V\
79 W\
80 c\
81 d\
82 e\
83 g\
84 i\
85 l\
86 n\
87 p\
88 q\
89 r\
90 t\
91 u\
92 x\
93 \fP]
94       [\fB\-v\fR \fIn\fR] [\fB\-s d\fR| \fBi\fR| \fBl\fR| \fBc\fR] [\fB\-Q\fR \fIn\fR] [\fB\-R \fBsubset\fR]
95       [\fB\-w\fP\ \fIwidth\fP] [\fB\-A\fP\ \fIdirectory\fP] [\fB\-B\fP\ \fIdirectory\fP]
96       [\fItermname\fP...]
97 .SH DESCRIPTION
98 \fB@INFOCMP@\fP can be used to compare a binary \fBterminfo\fP entry with other
99 terminfo entries, rewrite a \fBterminfo\fP description to take advantage of the
100 \fBuse=\fP terminfo field, or print out a \fBterminfo\fP description from the
101 binary file (\fBterm\fP) in a variety of formats.
102 In all cases, the boolean
103 fields will be printed first, followed by the numeric fields, followed by the
104 string fields.
105 .SS Default Options
106 If no options are specified and zero or one \fItermnames\fP are specified, the
107 \fB\-I\fP option will be assumed.
108 If more than one \fItermname\fP is specified,
109 the \fB\-d\fP option will be assumed.
110 .SS Comparison Options [\-d] [\-c] [\-n]
111 \fB@INFOCMP@\fP compares the \fBterminfo\fP description of the first terminal
112 \fItermname\fP with each of the descriptions given by the entries for the other
113 terminal's \fItermnames\fP.
114 If a capability is defined for only one of the
115 terminals, the value returned depends on the type of the capability:
116 .bP
117 \fBF\fP for missing boolean variables
118 .bP
119 \fBNULL\fP for missing integer or string variables
120 .PP
121 Use the \fB\-q\fP option to show the distinction between
122 \fIabsent\fP and \fIcancelled\fP capabilities.
123 .PP
124 These options produce a list which you can use to compare two
125 or more terminal descriptions:
126 .TP 5
127 \fB\-d\fP
128 produces a list of each capability that is \fIdifferent\fP
129 between two entries.
130 Each item in the list shows \*(``:\*('' after the capability name,
131 followed by the capability values, separated by a comma.
132 .TP
133 \fB\-c\fP
134 produces a list of each capability that is \fIcommon\fP between
135 two or more entries.
136 Missing capabilities are ignored.
137 Each item in the list shows \*(``=\*('' after the capability name,
138 followed by the capability value.
139 .IP
140 The \fB\-u\fP option provides a related output,
141 showing the first terminal description rewritten to use the second
142 as a building block via the \*(``use=\*('' clause.
143 .TP
144 \fB\-n\fP
145 produces a list of each capability that is in \fInone\fP of the given entries.
146 Each item in the list shows \*(``!\*('' before the capability name.
147 .IP
148 Normally only the conventional capabilities are shown.
149 Use the \fB\-x\fP option to add the BSD-compatibility
150 capabilities (names prefixed with \*(``OT\*('').
151 .IP
152 If no \fItermnames\fP are given,
153 \fB@INFOCMP@\fP uses the environment variable \fBTERM\fP
154 for each of the \fItermnames\fP.
155 .SS Source Listing Options [\-I] [\-L] [\-C] [\-r]
156 The \fB\-I\fP, \fB\-L\fP, and \fB\-C\fP options will produce
157 a source listing for each terminal named.
158 .PP
159 .TS
160 center tab(/) ;
161 l l .
162 \fB\-I\fP/use the \fBterminfo\fP names
163 \fB\-L\fP/use the long C variable name listed in <\fBterm.h\fP>
164 \fB\-C\fP/use the \fBtermcap\fP names
165 \fB\-r\fP/when using \fB\-C\fP, put out all capabilities in \fBtermcap\fP form
166 \fB\-K\fP/modifies the \fB\-C\fP option, improving BSD-compatibility.
167 .TE
168 .PP
169 If no \fItermnames\fP are given, the environment variable \fBTERM\fP will be
170 used for the terminal name.
171 .PP
172 The source produced by the \fB\-C\fP option may be used directly as a
173 \fBtermcap\fP entry, but not all parameterized strings can be changed to
174 the \fBtermcap\fP format.
175 \fB@INFOCMP@\fP will attempt to convert most of the
176 parameterized information, and anything not converted will be plainly marked in
177 the output and commented out.
178 These should be edited by hand.
179 .PP
180 For best results when converting to \fBtermcap\fP format,
181 you should use both \fB\-C\fP and \fB\-r\fP.
182 Normally a termcap description is limited to 1023 bytes.
183 \fB@INFOCMP@\fP trims away less essential parts to make it fit.
184 If you are converting to one of the (rare) termcap implementations
185 which accept an unlimited size of termcap,
186 you may want to add the \fB\-T\fP option.
187 More often however, you must help the termcap implementation,
188 and trim excess whitespace (use the \fB\-0\fP option for that).
189 .PP
190 All padding information for strings will be collected together and placed
191 at the beginning of the string where \fBtermcap\fP expects it.
192 Mandatory
193 padding (padding information with a trailing \*(``/\*('') will become optional.
194 .PP
195 All \fBtermcap\fP variables no longer supported by \fBterminfo\fP, but which
196 are derivable from other \fBterminfo\fP variables, will be output.
197 Not all
198 \fBterminfo\fP capabilities will be translated; only those variables which were
199 part of \fBtermcap\fP will normally be output.
200 Specifying the \fB\-r\fP option
201 will take off this restriction, allowing all capabilities to be output in
202 \fItermcap\fP form.
203 Normally you would use both the \fB\-C\fP and \fB\-r\fP options.
204 The actual format used incorporates some improvements for escaped characters
205 from terminfo format.
206 For a stricter BSD-compatible translation, use the \fB\-K\fP option
207 rather than \fB\-C\fP.
208 .PP
209 Note that because padding is collected to the beginning of the capability, not
210 all capabilities are output.
211 Mandatory padding is not supported.
212 Because
213 \fBtermcap\fP strings are not as flexible, it is not always possible to convert
214 a \fBterminfo\fP string capability into an equivalent \fBtermcap\fP format.
215 A subsequent conversion of the \fBtermcap\fP file
216 back into \fBterminfo\fP format
217 will not necessarily reproduce the original \fBterminfo\fP source.
218 .PP
219 Some common \fBterminfo\fP parameter sequences, their \fBtermcap\fP
220 equivalents, and some terminal types which commonly have such sequences, are:
221 .PP
222 .TS
223 center tab(/) ;
224 l c l
225 l l l.
226 \fBterminfo/termcap\fP/Representative Terminals
227 =
228 \fB%p1%c/%.\fP/adm
229 \fB%p1%d/%d\fP/hp, ANSI standard, vt100
230 \fB%p1%'x'%+%c/%+x\fP/concept
231 \fB%i/%i\fPq/ANSI standard, vt100
232 \fB%p1%?%'x'%>%t%p1%'y'%+%;/%>xy\fP/concept
233 \fB%p2\fP is printed before \fB%p1/%r\fP/hp
234 .TE
235 .SS Use= Option [\-u]
236 The \fB\-u\fP option produces a \fBterminfo\fP source description of the first
237 terminal \fItermname\fP which is relative to the sum of the descriptions given
238 by the entries for the other terminals \fItermnames\fP.
239 It does this by
240 analyzing the differences between the first \fItermname\fP and the other
241 \fItermnames\fP and producing a description with \fBuse=\fP fields for the
242 other terminals.
243 In this manner, it is possible to retrofit generic terminfo
244 entries into a terminal's description.
245 Or, if two similar terminals exist, but
246 were coded at different times or by different people so that each description
247 is a full description, using \fB@INFOCMP@\fP
248 will show what can be done to change
249 one description to be relative to the other.
250 .PP
251 A capability will be printed with an at-sign (@) if it no longer exists in the
252 first \fItermname\fP, but one of the other \fItermname\fP entries contains a
253 value for it.
254 A capability's value will be printed if the value in the first
255 \fItermname\fP is not found in any of the other \fItermname\fP entries, or if
256 the first of the other \fItermname\fP entries that has this capability gives a
257 different value for the capability than that in the first \fItermname\fP.
258 .PP
259 The order of the other \fItermname\fP entries is significant.
260 Since the
261 terminfo compiler \fB@TIC@\fP does a left-to-right scan of the capabilities,
262 specifying two \fBuse=\fP entries that contain differing entries for the same
263 capabilities will produce different results depending on the order that the
264 entries are given in.
265 \fB@INFOCMP@\fP will flag any such inconsistencies between
266 the other \fItermname\fP entries as they are found.
267 .PP
268 Alternatively, specifying a capability \fIafter\fP a \fBuse=\fP entry that
269 contains that capability will cause the second specification to be ignored.
270 Using \fB@INFOCMP@\fP to recreate a description can be a useful check to make
271 sure that everything was specified correctly in the original source
272 description.
273 .PP
274 Another error that does not cause incorrect compiled files, but will slow down
275 the compilation time, is specifying extra \fBuse=\fP fields that are
276 superfluous.
277 \fB@INFOCMP@\fP will flag any other \fItermname use=\fP fields that
278 were not needed.
279 .SS Changing Databases [\-A \fIdirectory\fR] [\-B \fIdirectory\fR]
280 Like other \fBncurses\fP utilities,
281 \fB@INFOCMP@\fP looks for the terminal descriptions in several places.
282 You can use the \fBTERMINFO\fP and \fBTERMINFO_DIRS\fP environment variables
283 to override the compiled-in default list of places to search.
284 See \fBcurses\fP(3X), as well as
285 the \fIFetching Compiled Descriptions\fP section in \fBterminfo\fR(\*n).
286 .PP
287 You can also use the options \fB\-A\fP
288 and \fB\-B\fP to override the list of places to search
289 when comparing terminal descriptions:
290 .bP
291 The \fB\-A\fP option sets the location for the first \fItermname\fP
292 .bP
293 The \fB\-B\fP option sets the location for the other \fItermnames\fP.
294 .PP
295 Using these options, it is possible to
296 compare descriptions for a terminal with the same name located in two different
297 databases.
298 For instance,
299 you can use this feature for comparing descriptions for the same terminal
300 created by different people.
301 .SS Other Options
302 .TP 5
303 \fB\-0\fP
304 causes the fields to be printed on one line, without wrapping.
305 .TP 5
306 \fB\-1\fP
307 causes the fields to be printed out one to a line.
308 Otherwise,
309 the fields will be printed several to a line to a maximum width
310 of 60 characters.
311 .TP
312 \fB\-a\fP
313 tells \fB@INFOCMP@\fP to retain commented-out capabilities
314 rather than discarding them.
315 Capabilities are commented by prefixing them with a period.
316 .TP
317 \fB\-D\fP
318 tells \fB@INFOCMP@\fP to print the database locations that it knows about,
319 and exit.
320 .TP 5
321 \fB\-E\fP
322 Dump the capabilities of the given terminal as tables, needed in
323 the C initializer for a
324 TERMTYPE structure (the terminal capability structure in the \fB<term.h>\fP).
325 This option is useful for preparing versions of the curses library hardwired
326 for a given terminal type.
327 The tables are all declared static, and are named according to the type
328 and the name of the corresponding terminal entry.
329 .sp
330 Before ncurses 5.0, the split between the \fB\-e\fP and \fB\-E\fP
331 options was not needed; but support for extended names required making
332 the arrays of terminal capabilities separate from the TERMTYPE structure.
333 .TP 5
334 \fB\-e\fP
335 Dump the capabilities of the given terminal as a C initializer for a
336 TERMTYPE structure (the terminal capability structure in the \fB<term.h>\fP).
337 This option is useful for preparing versions of the curses library hardwired
338 for a given terminal type.
339 .TP 5
340 \fB\-F\fP
341 compare terminfo files.
342 This assumes that two following arguments are filenames.
343 The files are searched for pairwise matches between
344 entries, with two entries considered to match if any of their names do.
345 The report printed to standard output lists entries with no matches in
346 the other file, and entries with more than one match.
347 For entries
348 with exactly one match it includes a difference report.
349 Normally,
350 to reduce the volume of the report, use references are
351 not resolved before looking for differences, but resolution can be forced
352 by also specifying \fB\-r\fP.
353 .TP 5
354 \fB\-f\fP
355 Display complex terminfo strings which contain if/then/else/endif expressions
356 indented for readability.
357 .TP 5
358 \fB\-G\fP
359 Display constant literals in decimal form
360 rather than their character equivalents.
361 .TP 5
362 \fB\-g\fP
363 Display constant character literals in quoted form
364 rather than their decimal equivalents.
365 .TP 5
366 \fB\-i\fP
367 Analyze the initialization (\fBis1\fP, \fBis2\fP, \fBis3\fP), and reset
368 (\fBrs1\fP, \fBrs2\fP, \fBrs3\fP), strings in the entry,
369 as well as those used for starting/stopping cursor-positioning mode
370 (\fBsmcup\fP, \fBrmcup\fP) as well as starting/stopping keymap mode
371 (\fBsmkx\fP, \fBrmkx\fP).
372 .IP
373 For each string, the
374 code tries to analyze it into actions in terms of the other capabilities in the
375 entry, certain X3.64/ISO 6429/ECMA\-48 capabilities, and certain DEC VT-series
376 private modes (the set of recognized special sequences has been selected for
377 completeness over the existing terminfo database).
378 Each report line consists
379 of the capability name, followed by a colon and space, followed by a printable
380 expansion of the capability string with sections matching recognized actions
381 translated into {}-bracketed descriptions.
382 .IP
383 Here is a list of the DEC/ANSI
384 special sequences recognized:
385 .PP
386 .TS
387 center tab(/) ;
388 l l
389 l l.
390 Action/Meaning
391 =
392 RIS/full reset
393 SC/save cursor
394 RC/restore cursor
395 LL/home-down
396 RSR/reset scroll region
397 =
398 DECSTR/soft reset (VT320)
399 S7C1T/7-bit controls (VT220)
400 =
401 ISO DEC G0/enable DEC graphics for G0
402 ISO UK G0/enable UK chars for G0
403 ISO US G0/enable US chars for G0
404 ISO DEC G1/enable DEC graphics for G1
405 ISO UK G1/enable UK chars for G1
406 ISO US G1/enable US chars for G1
407 =
408 DECPAM/application keypad mode
409 DECPNM/normal keypad mode
410 DECANSI/enter ANSI mode
411 =
412 ECMA[+\-]AM/keyboard action mode
413 ECMA[+\-]IRM/insert replace mode
414 ECMA[+\-]SRM/send receive mode
415 ECMA[+\-]LNM/linefeed mode
416 =
417 DEC[+\-]CKM/application cursor keys
418 DEC[+\-]ANM/set VT52 mode
419 DEC[+\-]COLM/132-column mode
420 DEC[+\-]SCLM/smooth scroll
421 DEC[+\-]SCNM/reverse video mode
422 DEC[+\-]OM/origin mode
423 DEC[+\-]AWM/wraparound mode
424 DEC[+\-]ARM/auto-repeat mode
425 .TE
426 .sp
427 It also recognizes a SGR action corresponding to ANSI/ISO 6429/ECMA Set
428 Graphics Rendition, with the values NORMAL, BOLD, UNDERLINE, BLINK, and
429 REVERSE.
430 All but NORMAL may be prefixed with
431 .RS
432 .bP
433 \*(``+\*('' (turn on) or
434 .bP
435 \*(``\-\*('' (turn off).
436 .RE
437 .IP
438 An SGR0 designates an empty highlight sequence (equivalent to {SGR:NORMAL}).
439 .TP 5
440 \fB\-l\fP
441 Set output format to terminfo.
442 .TP 5
443 \fB\-p\fP
444 Ignore padding specifications when comparing strings.
445 .TP 5
446 \fB\-Q\fP \fIn\fP
447 Rather than show source in terminfo (text) format,
448 print the compiled (binary) format in hexadecimal or base64 form,
449 depending on the option's value:
450 .RS 8
451 .TP 3
452 1
453 hexadecimal
454 .TP 3
455 2
456 base64
457 .TP 3
458 3
459 hexadecimal and base64
460 .RE
461 .IP
462 For example, this prints the compiled terminfo value as a string
463 which could be assigned to the \fBTERMINFO\fP environment variable:
464 .NS
465 @INFOCMP@ -0 -q -Q2
466 .NE
467 .TP 5
468 \fB\-q\fP
469 This makes the output a little shorter:
470 .RS
471 .bP
472 Make the comparison listing shorter by omitting subheadings, and using
473 \*(``\-\*('' for absent capabilities, \*(``@\*(''
474 for canceled rather than \*(``NULL\*(''.
475 .bP
476 However, show differences between absent and cancelled capabilities.
477 .bP
478 Omit the \*(``Reconstructed from\*('' comment for source listings.
479 .RE
480 .TP 5
481 \fB\-R\fIsubset\fR
482 Restrict output to a given subset.
483 This option is for use with archaic
484 versions of terminfo like those on SVr1, Ultrix, or HP-UX that do not support
485 the full set of SVR4/XSI Curses terminfo; and variants such as AIX
486 that have their own extensions incompatible with SVr4/XSI.
487 .RS
488 .bP
489 Available terminfo
490 subsets are \*(``SVr1\*('', \*(``Ultrix\*('', \*(``HP\*('', and \*(``AIX\*('';
491 see \fBterminfo\fP(\*n) for details.
492 .bP
493 You can also choose the subset \*(``BSD\*('' which selects only capabilities
494 with termcap equivalents recognized by 4.4BSD.
495 .bP
496 If you select any other value for \fB\-R\fP,
497 it is the same as no subset, i.e., all capabilities are used.
498 .RE
499 .IP
500 A few options override the subset selected with \fB\-R\fP,
501 if they are processed later in the command parameters:
502 .RS
503 .TP 5
504 \fB\-C\fP
505 sets the \*(``BSD\*('' subset as a side-effect.
506 .TP 5
507 \fB\-I\fP
508 sets the subset to all capabilities.
509 .TP 5
510 \fB\-r\fP
511 sets the subset to all capabilities.
512 .RE
513 .TP
514 \fB\-s \fI[d|i|l|c]\fR
515 The \fB\-s\fP option sorts the fields within each type according to the argument
516 below:
517 .br
518 .RS 5
519 .TP 5
520 \fBd\fP
521 leave fields in the order that they are stored in the \fIterminfo\fP database.
522 .TP 5
523 \fBi\fP
524 sort by \fIterminfo\fP name.
525 .TP 5
526 \fBl\fP
527 sort by the long C variable name.
528 .TP 5
529 \fBc\fP
530 sort by the \fItermcap\fP name.
531 .RE
532 .IP
533 If the \fB\-s\fP option is not given, the fields printed out will be
534 sorted alphabetically by the \fBterminfo\fP name within each type,
535 except in the case of the \fB\-C\fP or the \fB\-L\fP options, which cause the
536 sorting to be done by the \fBtermcap\fP name or the long C variable
537 name, respectively.
538 .TP 5
539 \fB\-T\fP
540 eliminates size-restrictions on the generated text.
541 This is mainly useful for testing and analysis, since the compiled
542 descriptions are limited (e.g., 1023 for termcap, 4096 for terminfo).
543 .TP
544 \fB\-t\fP
545 tells \fB@TIC@\fP to discard commented-out capabilities.
546 Normally when translating from terminfo to termcap,
547 untranslatable capabilities are commented-out.
548 .TP 5
549 \fB\-U\fP
550 tells \fB@INFOCMP@\fP to not post-process the data
551 after parsing the source file.
552 This feature helps when comparing the actual contents of two source files,
553 since it excludes the inferences that \fB@INFOCMP@\fP makes to fill in missing
554 data.
555 .TP 5
556 \fB\-V\fP
557 reports the version of ncurses which was used in this program, and exits.
558 .TP 5
559 \fB\-v\fP \fIn\fP
560 prints out tracing information on standard error as the program runs.
561 .IP
562 The optional parameter \fIn\fP is a number from 1 to 10, inclusive,
563 indicating the desired level of detail of information.
564 If ncurses is built without tracing support, the optional parameter is ignored.
565 .TP
566 \fB\-W\fP
567 By itself, the \fB\-w\fP option will not force long strings to be wrapped.
568 Use the \fB\-W\fP option to do this.
569 .TP 5
570 \fB\-w\fP \fIwidth\fP
571 changes the output to \fIwidth\fP characters.
572 .TP
573 \fB\-x\fP
574 print information for user-defined capabilities (see \fBuser_caps(\*n)\fP.
575 These are extensions to the terminfo repertoire which can be loaded
576 using the \fB\-x\fP option of \fB@TIC@\fP.
577 .SH FILES
578 .TP 20
579 \*d
580 Compiled terminal description database.
581 .SH HISTORY
582 Although System V Release 2 provided a terminfo library,
583 it had no documented tool for decompiling the terminal descriptions.
584 Tony Hansen (AT&T) wrote the first \fBinfocmp\fP in early 1984,
585 for System V Release 3.
586 .PP
587 Eric Raymond used the AT&T documentation in 1995 to provide an equivalent
588 \fB@INFOCMP@\fP for ncurses.
589 In addition, he added a few new features such as:
590 .bP
591 the \fB\-e\fP option, to support \fIfallback\fP
592 (compiled-in) terminal descriptions
593 .bP
594 the \fB\-i\fP option, to help with analysis
595 .PP
596 Later, Thomas Dickey added the \fB\-x\fP (user-defined capabilities)
597 option, and the \fB\-E\fP option to support fallback entries with
598 user-defined capabilities.
599 .PP
600 For a complete list, see the \fIEXTENSIONS\fP section.
601 .PP
602 In 2010, Roy Marples provided an \fBinfocmp\fP program for NetBSD.
603 It is less capable than the SVr4 or ncurses versions
604 (e.g., it lacks the sorting options documented in X/Open),
605 but does include the \fB\-x\fP option adapted from ncurses.
606 .SH PORTABILITY
607 X/Open Curses, Issue 7 (2009) provides a description of \fBinfocmp\fP.
608 It does not mention the options used for converting to termcap format.
609 .SH EXTENSIONS
610 The
611 \fB\-0\fP,
612 \fB\-1\fP,
613 \fB\-E\fP,
614 \fB\-F\fP,
615 \fB\-G\fP,
616 \fB\-Q\fP,
617 \fB\-R\fP,
618 \fB\-T\fP,
619 \fB\-V\fP,
620 \fB\-a\fP,
621 \fB\-e\fP,
622 \fB\-f\fP,
623 \fB\-g\fP,
624 \fB\-i\fP,
625 \fB\-l\fP,
626 \fB\-p\fP,
627 \fB\-q\fP and
628 \fB\-t\fP
629 options are not supported in SVr4 curses.
630 .PP
631 SVr4 infocmp does not distinguish between absent and cancelled capabilities.
632 Also, it shows missing integer capabilities as \fB\-1\fP
633 (the internal value used to represent missing integers).
634 This implementation shows those as \*(``NULL\*('',
635 for consistency with missing strings.
636 .PP
637 The \fB\-r\fP option's notion of \*(``termcap\*('' capabilities
638 is System V Release 4's.
639 Actual BSD curses versions will have a more restricted set.
640 To see only the
641 4.4BSD set, use \fB\-r\fP \fB\-RBSD\fP.
642 .SH BUGS
643 The \fB\-F\fP option of \fB@INFOCMP@\fP(1M) should be a \fB@TOE@\fP(1M) mode.
644 .SH AUTHOR
645 Eric S. Raymond <esr@snark.thyrsus.com>
646 and
647 .br
648 Thomas E. Dickey <dickey@invisible-island.net>
649 .SH SEE ALSO
650 \fB\%@CAPTOINFO@\fP(1M),
651 \fB\%@INFOTOCAP@\fP(1M),
652 \fB\%@TIC@\fP(1M),
653 \fB\%@TOE@\fP(1M),
654 \fB\%curses\fP(3X),
655 \fB\%terminfo\fP(\*n),
656 \fB\%user_caps\fP(\*n)
657 .PP
658 https://invisible-island.net/ncurses/tctest.html