]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/infocmp.1m
ncurses 6.4 - patch 20230701
[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.86 2023/07/01 14:31:54 tom Exp $
32 .TH @INFOCMP@ 1M 2023-07-01 "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 .de NS
43 .ie n  .sp
44 .el    .sp .5
45 .ie n  .in +4
46 .el    .in +2
47 .nf
48 .ft CR                  \" Courier
49 ..
50 .de NE
51 .fi
52 .ft R
53 .ie n  .in -4
54 .el    .in -2
55 ..
56 .ds d @TERMINFO@
57 .SH NAME
58 \fB@INFOCMP@\fP \- compare or print out \fIterminfo\fP descriptions
59 .SH SYNOPSIS
60 \fB@INFOCMP@\fP [\fB\-\
61 1\
62 C\
63 D\
64 E\
65 F\
66 G\
67 I\
68 K\
69 L\
70 T\
71 U\
72 V\
73 W\
74 c\
75 d\
76 e\
77 g\
78 i\
79 l\
80 n\
81 p\
82 q\
83 r\
84 t\
85 u\
86 x\
87 \fP]
88       [\fB\-v\fR \fIn\fR] [\fB\-s d\fR| \fBi\fR| \fBl\fR| \fBc\fR] [\fB\-Q\fR \fIn\fR] [\fB\-R \fBsubset\fR]
89       [\fB\-w\fP\ \fIwidth\fP] [\fB\-A\fP\ \fIdirectory\fP] [\fB\-B\fP\ \fIdirectory\fP]
90       [\fItermname\fP...]
91 .SH DESCRIPTION
92 \fB@INFOCMP@\fP can be used to compare a binary \fBterminfo\fP entry with other
93 terminfo entries, rewrite a \fBterminfo\fP description to take advantage of the
94 \fBuse=\fP terminfo field, or print out a \fBterminfo\fP description from the
95 binary file (\fBterm\fP) in a variety of formats.
96 In all cases, the boolean
97 fields will be printed first, followed by the numeric fields, followed by the
98 string fields.
99 .SS Default Options
100 If no options are specified and zero or one \fItermnames\fP are specified, the
101 \fB\-I\fP option will be assumed.
102 If more than one \fItermname\fP is specified,
103 the \fB\-d\fP option will be assumed.
104 .SS Comparison Options [\-d] [\-c] [\-n]
105 \fB@INFOCMP@\fP compares the \fBterminfo\fP description of the first terminal
106 \fItermname\fP with each of the descriptions given by the entries for the other
107 terminal's \fItermnames\fP.
108 If a capability is defined for only one of the
109 terminals, the value returned depends on the type of the capability:
110 .bP
111 \fBF\fP for missing boolean variables
112 .bP
113 \fBNULL\fP for missing integer or string variables
114 .PP
115 Use the \fB\-q\fP option to show the distinction between
116 \fIabsent\fP and \fIcancelled\fP capabilities.
117 .PP
118 These options produce a list which you can use to compare two
119 or more terminal descriptions:
120 .TP 5
121 \fB\-d\fP
122 produces a list of each capability that is \fIdifferent\fP
123 between two entries.
124 Each item in the list shows \*(``:\*('' after the capability name,
125 followed by the capability values, separated by a comma.
126 .TP
127 \fB\-c\fP
128 produces a list of each capability that is \fIcommon\fP between
129 two or more entries.
130 Missing capabilities are ignored.
131 Each item in the list shows \*(``=\*('' after the capability name,
132 followed by the capability value.
133 .IP
134 The \fB\-u\fP option provides a related output,
135 showing the first terminal description rewritten to use the second
136 as a building block via the \*(``use=\*('' clause.
137 .TP
138 \fB\-n\fP
139 produces a list of each capability that is in \fInone\fP of the given entries.
140 Each item in the list shows \*(``!\*('' before the capability name.
141 .IP
142 Normally only the conventional capabilities are shown.
143 Use the \fB\-x\fP option to add the BSD-compatibility
144 capabilities (names prefixed with \*(``OT\*('').
145 .IP
146 If no \fItermnames\fP are given,
147 \fB@INFOCMP@\fP uses the environment variable \fBTERM\fP
148 for each of the \fItermnames\fP.
149 .SS Source Listing Options [\-I] [\-L] [\-C] [\-r]
150 The \fB\-I\fP, \fB\-L\fP, and \fB\-C\fP options will produce
151 a source listing for each terminal named.
152 .
153 .TS
154 center tab(/) ;
155 l l .
156 \fB\-I\fP/use the \fBterminfo\fP names
157 \fB\-L\fP/use the long C variable name listed in <\fBterm.h\fP>
158 \fB\-C\fP/use the \fBtermcap\fP names
159 \fB\-r\fP/when using \fB\-C\fP, put out all capabilities in \fBtermcap\fP form
160 \fB\-K\fP/modifies the \fB\-C\fP option, improving BSD-compatibility.
161 .TE
162 .PP
163 If no \fItermnames\fP are given, the environment variable \fBTERM\fP will be
164 used for the terminal name.
165 .PP
166 The source produced by the \fB\-C\fP option may be used directly as a
167 \fBtermcap\fP entry, but not all parameterized strings can be changed to
168 the \fBtermcap\fP format.
169 \fB@INFOCMP@\fP will attempt to convert most of the
170 parameterized information, and anything not converted will be plainly marked in
171 the output and commented out.
172 These should be edited by hand.
173 .PP
174 For best results when converting to \fBtermcap\fP format,
175 you should use both \fB\-C\fP and \fB\-r\fP.
176 Normally a termcap description is limited to 1023 bytes.
177 \fB@INFOCMP@\fP trims away less essential parts to make it fit.
178 If you are converting to one of the (rare) termcap implementations
179 which accept an unlimited size of termcap,
180 you may want to add the \fB\-T\fP option.
181 More often however, you must help the termcap implementation,
182 and trim excess whitespace (use the \fB\-0\fP option for that).
183 .PP
184 All padding information for strings will be collected together and placed
185 at the beginning of the string where \fBtermcap\fP expects it.
186 Mandatory
187 padding (padding information with a trailing \*(``/\*('') will become optional.
188 .PP
189 All \fBtermcap\fP variables no longer supported by \fBterminfo\fP, but which
190 are derivable from other \fBterminfo\fP variables, will be output.
191 Not all
192 \fBterminfo\fP capabilities will be translated; only those variables which were
193 part of \fBtermcap\fP will normally be output.
194 Specifying the \fB\-r\fP option
195 will take off this restriction, allowing all capabilities to be output in
196 \fItermcap\fP form.
197 Normally you would use both the \fB\-C\fP and \fB\-r\fP options.
198 The actual format used incorporates some improvements for escaped characters
199 from terminfo format.
200 For a stricter BSD-compatible translation, use the \fB\-K\fP option
201 rather than \fB\-C\fP.
202 .PP
203 Note that because padding is collected to the beginning of the capability, not
204 all capabilities are output.
205 Mandatory padding is not supported.
206 Because
207 \fBtermcap\fP strings are not as flexible, it is not always possible to convert
208 a \fBterminfo\fP string capability into an equivalent \fBtermcap\fP format.
209 A subsequent conversion of the \fBtermcap\fP file
210 back into \fBterminfo\fP format
211 will not necessarily reproduce the original \fBterminfo\fP source.
212 .PP
213 Some common \fBterminfo\fP parameter sequences, their \fBtermcap\fP
214 equivalents, and some terminal types which commonly have such sequences, are:
215 .
216 .TS
217 center tab(/) ;
218 l c l
219 l l l.
220 \fBterminfo/termcap\fP/Representative Terminals
221 =
222 \fB%p1%c/%.\fP/adm
223 \fB%p1%d/%d\fP/hp, ANSI standard, vt100
224 \fB%p1%'x'%+%c/%+x\fP/concept
225 \fB%i/%i\fPq/ANSI standard, vt100
226 \fB%p1%?%'x'%>%t%p1%'y'%+%;/%>xy\fP/concept
227 \fB%p2\fP is printed before \fB%p1/%r\fP/hp
228 .TE
229 .SS Use= Option [\-u]
230 The \fB\-u\fP option produces a \fBterminfo\fP source description of the first
231 terminal \fItermname\fP which is relative to the sum of the descriptions given
232 by the entries for the other terminals \fItermnames\fP.
233 It does this by
234 analyzing the differences between the first \fItermname\fP and the other
235 \fItermnames\fP and producing a description with \fBuse=\fP fields for the
236 other terminals.
237 In this manner, it is possible to retrofit generic terminfo
238 entries into a terminal's description.
239 Or, if two similar terminals exist, but
240 were coded at different times or by different people so that each description
241 is a full description, using \fB@INFOCMP@\fP
242 will show what can be done to change
243 one description to be relative to the other.
244 .PP
245 A capability will be printed with an at-sign (@) if it no longer exists in the
246 first \fItermname\fP, but one of the other \fItermname\fP entries contains a
247 value for it.
248 A capability's value will be printed if the value in the first
249 \fItermname\fP is not found in any of the other \fItermname\fP entries, or if
250 the first of the other \fItermname\fP entries that has this capability gives a
251 different value for the capability than that in the first \fItermname\fP.
252 .PP
253 The order of the other \fItermname\fP entries is significant.
254 Since the
255 terminfo compiler \fB@TIC@\fP does a left-to-right scan of the capabilities,
256 specifying two \fBuse=\fP entries that contain differing entries for the same
257 capabilities will produce different results depending on the order that the
258 entries are given in.
259 \fB@INFOCMP@\fP will flag any such inconsistencies between
260 the other \fItermname\fP entries as they are found.
261 .PP
262 Alternatively, specifying a capability \fIafter\fP a \fBuse=\fP entry that
263 contains that capability will cause the second specification to be ignored.
264 Using \fB@INFOCMP@\fP to recreate a description can be a useful check to make
265 sure that everything was specified correctly in the original source
266 description.
267 .PP
268 Another error that does not cause incorrect compiled files, but will slow down
269 the compilation time, is specifying extra \fBuse=\fP fields that are
270 superfluous.
271 \fB@INFOCMP@\fP will flag any other \fItermname use=\fP fields that
272 were not needed.
273 .SS Changing Databases [\-A \fIdirectory\fR] [\-B \fIdirectory\fR]
274 Like other \fBncurses\fP utilities,
275 \fB@INFOCMP@\fP looks for the terminal descriptions in several places.
276 You can use the \fBTERMINFO\fP and \fBTERMINFO_DIRS\fP environment variables
277 to override the compiled-in default list of places to search
278 (see \fBcurses\fP(3X) for details).
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 \fItermname\fP
285 .bP
286 The \fB\-B\fP option sets the location for the other \fItermnames\fP.
287 .PP
288 Using these options, it is possible to
289 compare descriptions for a terminal with the same name located in two different
290 databases.
291 For instance,
292 you can use this feature for comparing descriptions for the same terminal
293 created by different people.
294 .SS Other Options
295 .TP 5
296 \fB\-0\fP
297 causes the fields to be printed on one line, without wrapping.
298 .TP 5
299 \fB\-1\fP
300 causes the fields to be printed out one to a line.
301 Otherwise,
302 the fields will be printed several to a line to a maximum width
303 of 60 characters.
304 .TP
305 \fB\-a\fP
306 tells \fB@INFOCMP@\fP to retain commented-out capabilities
307 rather than discarding them.
308 Capabilities are commented by prefixing them with a period.
309 .TP
310 \fB\-D\fP
311 tells \fB@INFOCMP@\fP to print the database locations that it knows about,
312 and exit.
313 .TP 5
314 \fB\-E\fP
315 Dump the capabilities of the given terminal as tables, needed in
316 the C initializer for a
317 TERMTYPE structure (the terminal capability structure in the \fB<term.h>\fP).
318 This option is useful for preparing versions of the curses library hardwired
319 for a given terminal type.
320 The tables are all declared static, and are named according to the type
321 and the name of the corresponding terminal entry.
322 .sp
323 Before ncurses 5.0, the split between the \fB\-e\fP and \fB\-E\fP
324 options was not needed; but support for extended names required making
325 the arrays of terminal capabilities separate from the TERMTYPE structure.
326 .TP 5
327 \fB\-e\fP
328 Dump the capabilities of the given terminal as a C initializer for a
329 TERMTYPE structure (the terminal capability structure in the \fB<term.h>\fP).
330 This option is useful for preparing versions of the curses library hardwired
331 for a given terminal type.
332 .TP 5
333 \fB\-F\fP
334 compare terminfo files.
335 This assumes that two following arguments are filenames.
336 The files are searched for pairwise matches between
337 entries, with two entries considered to match if any of their names do.
338 The report printed to standard output lists entries with no matches in
339 the other file, and entries with more than one match.
340 For entries
341 with exactly one match it includes a difference report.
342 Normally,
343 to reduce the volume of the report, use references are
344 not resolved before looking for differences, but resolution can be forced
345 by also specifying \fB\-r\fP.
346 .TP 5
347 \fB\-f\fP
348 Display complex terminfo strings which contain if/then/else/endif expressions
349 indented for readability.
350 .TP 5
351 \fB\-G\fP
352 Display constant literals in decimal form
353 rather than their character equivalents.
354 .TP 5
355 \fB\-g\fP
356 Display constant character literals in quoted form
357 rather than their decimal equivalents.
358 .TP 5
359 \fB\-i\fP
360 Analyze the initialization (\fBis1\fP, \fBis2\fP, \fBis3\fP), and reset
361 (\fBrs1\fP, \fBrs2\fP, \fBrs3\fP), strings in the entry,
362 as well as those used for starting/stopping cursor-positioning mode
363 (\fBsmcup\fP, \fBrmcup\fP) as well as starting/stopping keymap mode
364 (\fBsmkx\fP, \fBrmkx\fP).
365 .IP
366 For each string, the
367 code tries to analyze it into actions in terms of the other capabilities in the
368 entry, certain X3.64/ISO 6429/ECMA\-48 capabilities, and certain DEC VT-series
369 private modes (the set of recognized special sequences has been selected for
370 completeness over the existing terminfo database).
371 Each report line consists
372 of the capability name, followed by a colon and space, followed by a printable
373 expansion of the capability string with sections matching recognized actions
374 translated into {}-bracketed descriptions.
375 .IP
376 Here is a list of the DEC/ANSI
377 special sequences recognized:
378 .TS
379 center tab(/) ;
380 l l
381 l l.
382 Action/Meaning
383 =
384 RIS/full reset
385 SC/save cursor
386 RC/restore cursor
387 LL/home-down
388 RSR/reset scroll region
389 =
390 DECSTR/soft reset (VT320)
391 S7C1T/7-bit controls (VT220)
392 =
393 ISO DEC G0/enable DEC graphics for G0
394 ISO UK G0/enable UK chars for G0
395 ISO US G0/enable US chars for G0
396 ISO DEC G1/enable DEC graphics for G1
397 ISO UK G1/enable UK chars for G1
398 ISO US G1/enable US chars for G1
399 =
400 DECPAM/application keypad mode
401 DECPNM/normal keypad mode
402 DECANSI/enter ANSI mode
403 =
404 ECMA[+\-]AM/keyboard action mode
405 ECMA[+\-]IRM/insert replace mode
406 ECMA[+\-]SRM/send receive mode
407 ECMA[+\-]LNM/linefeed mode
408 =
409 DEC[+\-]CKM/application cursor keys
410 DEC[+\-]ANM/set VT52 mode
411 DEC[+\-]COLM/132-column mode
412 DEC[+\-]SCLM/smooth scroll
413 DEC[+\-]SCNM/reverse video mode
414 DEC[+\-]OM/origin mode
415 DEC[+\-]AWM/wraparound mode
416 DEC[+\-]ARM/auto-repeat mode
417 .TE
418 .sp
419 It also recognizes a SGR action corresponding to ANSI/ISO 6429/ECMA Set
420 Graphics Rendition, with the values NORMAL, BOLD, UNDERLINE, BLINK, and
421 REVERSE.
422 All but NORMAL may be prefixed with
423 .RS
424 .bP
425 \*(``+\*('' (turn on) or
426 .bP
427 \*(``\-\*('' (turn off).
428 .RE
429 .IP
430 An SGR0 designates an empty highlight sequence (equivalent to {SGR:NORMAL}).
431 .TP 5
432 \fB\-l\fP
433 Set output format to terminfo.
434 .TP 5
435 \fB\-p\fP
436 Ignore padding specifications when comparing strings.
437 .TP 5
438 \fB\-Q\fP \fIn\fP
439 Rather than show source in terminfo (text) format,
440 print the compiled (binary) format in hexadecimal or base64 form,
441 depending on the option's value:
442 .RS 8
443 .TP 3
444 1
445 hexadecimal
446 .TP 3
447 2
448 base64
449 .TP 3
450 3
451 hexadecimal and base64
452 .RE
453 .IP
454 For example, this prints the compiled terminfo value as a string
455 which could be assigned to the \fBTERMINFO\fP environment variable:
456 .NS
457 @INFOCMP@ -0 -q -Q2
458 .NE
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 SEE ALSO
637 \fB@CAPTOINFO@\fP(1M),
638 \fB@INFOTOCAP@\fP(1M),
639 \fB@TIC@\fP(1M),
640 \fB@TOE@\fP(1M),
641 \fBcurses\fP(3X),
642 \fBterminfo\fP(\*n).
643 \fBuser_caps\fP(\*n).
644 .sp
645 https://invisible-island.net/ncurses/tctest.html
646 .PP
647 This describes \fBncurses\fP
648 version @NCURSES_MAJOR@.@NCURSES_MINOR@ (patch @NCURSES_PATCH@).
649 .SH AUTHOR
650 Eric S. Raymond <esr@snark.thyrsus.com>
651 and
652 .br
653 Thomas E. Dickey <dickey@invisible-island.net>