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