]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/infocmp.1m
ncurses 6.4 - patch 20230819
[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.87 2023/08/19 20:39:40 tom Exp $
32 .TH @INFOCMP@ 1M 2023-08-19 "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 .PP
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 .PP
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 .PP
379 .TS
380 center tab(/) ;
381 l l
382 l l.
383 Action/Meaning
384 =
385 RIS/full reset
386 SC/save cursor
387 RC/restore cursor
388 LL/home-down
389 RSR/reset scroll region
390 =
391 DECSTR/soft reset (VT320)
392 S7C1T/7-bit controls (VT220)
393 =
394 ISO DEC G0/enable DEC graphics for G0
395 ISO UK G0/enable UK chars for G0
396 ISO US G0/enable US chars for G0
397 ISO DEC G1/enable DEC graphics for G1
398 ISO UK G1/enable UK chars for G1
399 ISO US G1/enable US chars for G1
400 =
401 DECPAM/application keypad mode
402 DECPNM/normal keypad mode
403 DECANSI/enter ANSI mode
404 =
405 ECMA[+\-]AM/keyboard action mode
406 ECMA[+\-]IRM/insert replace mode
407 ECMA[+\-]SRM/send receive mode
408 ECMA[+\-]LNM/linefeed mode
409 =
410 DEC[+\-]CKM/application cursor keys
411 DEC[+\-]ANM/set VT52 mode
412 DEC[+\-]COLM/132-column mode
413 DEC[+\-]SCLM/smooth scroll
414 DEC[+\-]SCNM/reverse video mode
415 DEC[+\-]OM/origin mode
416 DEC[+\-]AWM/wraparound mode
417 DEC[+\-]ARM/auto-repeat mode
418 .TE
419 .sp
420 It also recognizes a SGR action corresponding to ANSI/ISO 6429/ECMA Set
421 Graphics Rendition, with the values NORMAL, BOLD, UNDERLINE, BLINK, and
422 REVERSE.
423 All but NORMAL may be prefixed with
424 .RS
425 .bP
426 \*(``+\*('' (turn on) or
427 .bP
428 \*(``\-\*('' (turn off).
429 .RE
430 .IP
431 An SGR0 designates an empty highlight sequence (equivalent to {SGR:NORMAL}).
432 .TP 5
433 \fB\-l\fP
434 Set output format to terminfo.
435 .TP 5
436 \fB\-p\fP
437 Ignore padding specifications when comparing strings.
438 .TP 5
439 \fB\-Q\fP \fIn\fP
440 Rather than show source in terminfo (text) format,
441 print the compiled (binary) format in hexadecimal or base64 form,
442 depending on the option's value:
443 .RS 8
444 .TP 3
445 1
446 hexadecimal
447 .TP 3
448 2
449 base64
450 .TP 3
451 3
452 hexadecimal and base64
453 .RE
454 .IP
455 For example, this prints the compiled terminfo value as a string
456 which could be assigned to the \fBTERMINFO\fP environment variable:
457 .NS
458 @INFOCMP@ -0 -q -Q2
459 .NE
460 .TP 5
461 \fB\-q\fP
462 This makes the output a little shorter:
463 .RS
464 .bP
465 Make the comparison listing shorter by omitting subheadings, and using
466 \*(``\-\*('' for absent capabilities, \*(``@\*(''
467 for canceled rather than \*(``NULL\*(''.
468 .bP
469 However, show differences between absent and cancelled capabilities.
470 .bP
471 Omit the \*(``Reconstructed from\*('' comment for source listings.
472 .RE
473 .TP 5
474 \fB\-R\fIsubset\fR
475 Restrict output to a given subset.
476 This option is for use with archaic
477 versions of terminfo like those on SVr1, Ultrix, or HP-UX that do not support
478 the full set of SVR4/XSI Curses terminfo; and variants such as AIX
479 that have their own extensions incompatible with SVr4/XSI.
480 .RS
481 .bP
482 Available terminfo
483 subsets are \*(``SVr1\*('', \*(``Ultrix\*('', \*(``HP\*('', and \*(``AIX\*('';
484 see \fBterminfo\fP(\*n) for details.
485 .bP
486 You can also choose the subset \*(``BSD\*('' which selects only capabilities
487 with termcap equivalents recognized by 4.4BSD.
488 .bP
489 If you select any other value for \fB\-R\fP,
490 it is the same as no subset, i.e., all capabilities are used.
491 .RE
492 .IP
493 A few options override the subset selected with \fB\-R\fP,
494 if they are processed later in the command parameters:
495 .RS
496 .TP 5
497 \fB\-C\fP
498 sets the \*(``BSD\*('' subset as a side-effect.
499 .TP 5
500 \fB\-I\fP
501 sets the subset to all capabilities.
502 .TP 5
503 \fB\-r\fP
504 sets the subset to all capabilities.
505 .RE
506 .TP
507 \fB\-s \fI[d|i|l|c]\fR
508 The \fB\-s\fP option sorts the fields within each type according to the argument
509 below:
510 .br
511 .RS 5
512 .TP 5
513 \fBd\fP
514 leave fields in the order that they are stored in the \fIterminfo\fP database.
515 .TP 5
516 \fBi\fP
517 sort by \fIterminfo\fP name.
518 .TP 5
519 \fBl\fP
520 sort by the long C variable name.
521 .TP 5
522 \fBc\fP
523 sort by the \fItermcap\fP name.
524 .RE
525 .IP
526 If the \fB\-s\fP option is not given, the fields printed out will be
527 sorted alphabetically by the \fBterminfo\fP name within each type,
528 except in the case of the \fB\-C\fP or the \fB\-L\fP options, which cause the
529 sorting to be done by the \fBtermcap\fP name or the long C variable
530 name, respectively.
531 .TP 5
532 \fB\-T\fP
533 eliminates size-restrictions on the generated text.
534 This is mainly useful for testing and analysis, since the compiled
535 descriptions are limited (e.g., 1023 for termcap, 4096 for terminfo).
536 .TP
537 \fB\-t\fP
538 tells \fB@TIC@\fP to discard commented-out capabilities.
539 Normally when translating from terminfo to termcap,
540 untranslatable capabilities are commented-out.
541 .TP 5
542 \fB\-U\fP
543 tells \fB@INFOCMP@\fP to not post-process the data
544 after parsing the source file.
545 This feature helps when comparing the actual contents of two source files,
546 since it excludes the inferences that \fB@INFOCMP@\fP makes to fill in missing
547 data.
548 .TP 5
549 \fB\-V\fP
550 reports the version of ncurses which was used in this program, and exits.
551 .TP 5
552 \fB\-v\fP \fIn\fP
553 prints out tracing information on standard error as the program runs.
554 .IP
555 The optional parameter \fIn\fP is a number from 1 to 10, inclusive,
556 indicating the desired level of detail of information.
557 If ncurses is built without tracing support, the optional parameter is ignored.
558 .TP
559 \fB\-W\fP
560 By itself, the \fB\-w\fP option will not force long strings to be wrapped.
561 Use the \fB\-W\fP option to do this.
562 .TP 5
563 \fB\-w\fP \fIwidth\fP
564 changes the output to \fIwidth\fP characters.
565 .TP
566 \fB\-x\fP
567 print information for user-defined capabilities (see \fBuser_caps(\*n)\fP.
568 These are extensions to the terminfo repertoire which can be loaded
569 using the \fB\-x\fP option of \fB@TIC@\fP.
570 .SH FILES
571 .TP 20
572 \*d
573 Compiled terminal description database.
574 .SH HISTORY
575 Although System V Release 2 provided a terminfo library,
576 it had no documented tool for decompiling the terminal descriptions.
577 Tony Hansen (AT&T) wrote the first \fBinfocmp\fP in early 1984,
578 for System V Release 3.
579 .PP
580 Eric Raymond used the AT&T documentation in 1995 to provide an equivalent
581 \fB@INFOCMP@\fP for ncurses.
582 In addition, he added a few new features such as:
583 .bP
584 the \fB\-e\fP option, to support \fIfallback\fP
585 (compiled-in) terminal descriptions
586 .bP
587 the \fB\-i\fP option, to help with analysis
588 .PP
589 Later, Thomas Dickey added the \fB\-x\fP (user-defined capabilities)
590 option, and the \fB\-E\fP option to support fallback entries with
591 user-defined capabilities.
592 .PP
593 For a complete list, see the \fIEXTENSIONS\fP section.
594 .PP
595 In 2010, Roy Marples provided an \fBinfocmp\fP program for NetBSD.
596 It is less capable than the SVr4 or ncurses versions
597 (e.g., it lacks the sorting options documented in X/Open),
598 but does include the \fB\-x\fP option adapted from ncurses.
599 .SH PORTABILITY
600 X/Open Curses, Issue 7 (2009) provides a description of \fBinfocmp\fP.
601 It does not mention the options used for converting to termcap format.
602 .SH EXTENSIONS
603 The
604 \fB\-0\fP,
605 \fB\-1\fP,
606 \fB\-E\fP,
607 \fB\-F\fP,
608 \fB\-G\fP,
609 \fB\-Q\fP,
610 \fB\-R\fP,
611 \fB\-T\fP,
612 \fB\-V\fP,
613 \fB\-a\fP,
614 \fB\-e\fP,
615 \fB\-f\fP,
616 \fB\-g\fP,
617 \fB\-i\fP,
618 \fB\-l\fP,
619 \fB\-p\fP,
620 \fB\-q\fP and
621 \fB\-t\fP
622 options are not supported in SVr4 curses.
623 .PP
624 SVr4 infocmp does not distinguish between absent and cancelled capabilities.
625 Also, it shows missing integer capabilities as \fB\-1\fP
626 (the internal value used to represent missing integers).
627 This implementation shows those as \*(``NULL\*('',
628 for consistency with missing strings.
629 .PP
630 The \fB\-r\fP option's notion of \*(``termcap\*('' capabilities
631 is System V Release 4's.
632 Actual BSD curses versions will have a more restricted set.
633 To see only the
634 4.4BSD set, use \fB\-r\fP \fB\-RBSD\fP.
635 .SH BUGS
636 The \fB\-F\fP option of \fB@INFOCMP@\fP(1M) should be a \fB@TOE@\fP(1M) mode.
637 .SH SEE ALSO
638 \fB@CAPTOINFO@\fP(1M),
639 \fB@INFOTOCAP@\fP(1M),
640 \fB@TIC@\fP(1M),
641 \fB@TOE@\fP(1M),
642 \fBcurses\fP(3X),
643 \fBterminfo\fP(\*n).
644 \fBuser_caps\fP(\*n).
645 .sp
646 https://invisible-island.net/ncurses/tctest.html
647 .PP
648 This describes \fBncurses\fP
649 version @NCURSES_MAJOR@.@NCURSES_MINOR@ (patch @NCURSES_PATCH@).
650 .SH AUTHOR
651 Eric S. Raymond <esr@snark.thyrsus.com>
652 and
653 .br
654 Thomas E. Dickey <dickey@invisible-island.net>