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