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