NAME
iinnffooccmmpp - compare or print out terminfo descriptions
SYNOPSIS
iinnffooccmmpp [-11CCEEFFGGIILLTTVVccddeeggiillnnppqqrrttuuxx]
[-vv n] [-ss dd| ii| ll| cc] [-RR ssuubbsseett]
[-ww width] [-AA directory] [-BB directory]
[termname...]DESCRIPTION
iinnffooccmmpp can be used to compare a binary tteerrmmiinnffoo entry with other ter-
minfo entries, rewrite a tteerrmmiinnffoo description to take advantage of the uussee== terminfo field, or print out a tteerrmmiinnffoo description from the binary file (tteerrmm) in a variety of formats. In all cases, the boolean fields will be printed first, followed by the numeric fields, followed by the string fields. Default Options If no options are specified and zero or one termnames are specified,the -II option will be assumed. If more than one termname is specified,
the -dd option will be assumed.
Comparison Options [d] [-c] [n]
iinnffooccmmpp compares the tteerrmmiinnffoo description of the first terminal termname with each of the descriptions given by the entries for the other terminal's termnames. If a capability is defined for only one ofthe terminals, the value returned will depend on the type of the capa-
bility: FF for boolean variables, -11 for integer variables, and NNUULLLL for
string variables.The -dd option produces a list of each capability that is different
between two entries. This option is useful to show the differencebetween two entries, created by different people, for the same or simi-
lar terminals.The -cc option produces a list of each capability that is common between
two entries. Capabilities that are not set are ignored. This optioncan be used as a quick check to see if the -uu option is worth using.
The -nn option produces a list of each capability that is in neither
entry. If no termnames are given, the environment variable TTEERRMM will be used for both of the termnames. This can be used as a quick check to see if anything was left out of a description.Source Listing Options [I] [-L] [C] [-r]
The -II, -LL, and -CC options will produce a source listing for each ter-
minal named.-II use the tteerrmmiinnffoo names
-LL use the long C variable name listed in
-CC use the tteerrmmccaapp names
-rr when using -CC, put out all capabilities in tteerrmmccaapp form
If no termnames are given, the environment variable TTEERRMM will be used for the terminal name.The source produced by the -CC option may be used directly as a tteerrmmccaapp
entry, but not all parameterized strings can be changed to the tteerrmmccaapp format. iinnffooccmmpp will attempt to convert most of the parameterized information, and anything not converted will be plainly marked in the output and commented out. These should be edited by hand. All padding information for strings will be collected together andplaced at the beginning of the string where tteerrmmccaapp expects it. Manda-
tory padding (padding information with a trailing '/') will become optional. All tteerrmmccaapp variables no longer supported by tteerrmmiinnffoo, but which arederivable from other tteerrmmiinnffoo variables, will be output. Not all tteerr-
mmiinnffoo capabilities will be translated; only those variables which werepart of tteerrmmccaapp will normally be output. Specifying the -rr option will
take off this restriction, allowing all capabilities to be output in termcap form.Note that because padding is collected to the beginning of the capabil-
ity, not all capabilities are output. Mandatory padding is not sup-
ported. Because tteerrmmccaapp strings are not as flexible, it is not always possible to convert a tteerrmmiinnffoo string capability into an equivalent tteerrmmccaapp format. A subsequent conversion of the tteerrmmccaapp file back into tteerrmmiinnffoo format will not necessarily reproduce the original tteerrmmiinnffoo source. Some common tteerrmmiinnffoo parameter sequences, their tteerrmmccaapp equivalents, and some terminal types which commonly have such sequences, are: tteerrmmiinnffoo tteerrmmccaapp Representative Terminals--------------------------------
%%pp11%%cc %%.. adm
%%pp11%%dd %%dd hp, ANSI standard, vt100
%%pp11%%''xx''%%++%%cc %%++xx concept
%%ii %%iiq ANSI standard, vt100
%%pp11%%??%%''xx''%%>>%%tt%%pp11%%''yy''%%++%%;; %%>>xxyy concept
%%pp22 is printed before %%pp11 %%rr hp
Use= Option [u]The -uu option produces a tteerrmmiinnffoo source description of the first ter-
minal termname which is relative to the sum of the descriptions givenby the entries for the other terminals termnames. It does this by ana-
lyzing the differences between the first termname and the other termnames and producing a description with uussee== fields for the other terminals. In this manner, it is possible to retrofit generic terminfo entries into a terminal's description. Or, if two similar terminals exist, but were coded at different times or by different people so that each description is a full description, using iinnffooccmmpp will show what can be done to change one description to be relative to the other.A capability will get printed with an at-sign (@) if it no longer
exists in the first termname, but one of the other termname entries contains a value for it. A capability's value gets printed if the value in the first termname is not found in any of the other termname entries, or if the first of the other termname entries that has this capability gives a different value for the capability than that in the first termname.The order of the other termname entries is significant. Since the ter-
minfo compiler ttiicc does a left-to-right scan of the capabilities, spec-
ifying two uussee== entries that contain differing entries for the same capabilities will produce different results depending on the order that the entries are given in. iinnffooccmmpp will flag any such inconsistencies between the other termname entries as they are found. Alternatively, specifying a capability after a uussee== entry that contains that capability will cause the second specification to be ignored. Using iinnffooccmmpp to recreate a description can be a useful check to make sure that everything was specified correctly in the original source description. Another error that does not cause incorrect compiled files, but will slow down the compilation time, is specifying extra uussee== fields that are superfluous. iinnffooccmmpp will flag any other termname use= fields that were not needed.CChhaannggiinngg DDaattaabbaasseess [[-AA directory] [-B directory]
The location of the compiled tteerrmmiinnffoo database is taken from the envi-
ronment variable TTEERRMMIINNFFOO . If the variable is not defined, or the terminal is not found in that location, the system tteerrmmiinnffoo database,in //uussrr//sshhaarree//tteerrmmiinnffoo, will be used. The options -AA and -BB may be
used to override this location. The -AA option will set TTEERRMMIINNFFOO for
the first termname and the -BB option will set TTEERRMMIINNFFOO for the other
termnames. With this, it is possible to compare descriptions for a terminal with the same name located in two different databases. This is useful for comparing descriptions for the same terminal created by different people. Other Options-11 causes the fields to be printed out one to a line. Otherwise, the
fields will be printed several to a line to a maximum width of 60 characters.-aa tells iinnffooccmmpp to retain commented-out capabilities rather than
discarding them. Capabilities are commented by prefixing them with a period.-EE Dump the capabilities of the given terminal as tables, needed in
the C initializer for a TERMTYPE structure (the terminal capabil-
ity structure in the <
ing versions of the curses library hardwired for a given terminal type. The tables are all declared static, and are named according to the type and the name of the corresponding terminal entry.>). This option is useful for prepar- Before ncurses 5.0, the split between the -ee and -EE options was
not needed; but support for extended names required making thearrays of terminal capabilities separate from the TERMTYPE struc-
ture.-ee Dump the capabilities of the given terminal as a C initializer for
a TERMTYPE structure (the terminal capability structure in the <>). This option is useful for preparing versions of the curses library hardwired for a given terminal type. -FF compare terminfo files. This assumes that two following arguments
are filenames. The files are searched for pairwise matches between entries, with two entries considered to match if any of their names do. The report printed to standard output lists entries with no matches in the other file, and entries with more than one match. For entries with exactly one match it includes a difference report. Normally, to reduce the volume of the report, use references are not resolved before looking for differences,but resolution can be forced by also specifying -rr.
-ff Display complex terminfo strings which contain if/then/else/endif
expressions indented for readability.-GG Display constant literals in decimal form rather than their char-
acter equivalents.-gg Display constant character literals in quoted form rather than
their decimal equivalents.-ii Analyze the initialization (iiss11, iiss22, iiss33), and reset (rrss11, rrss22,
rrss33), strings in the entry. For each string, the code tries to analyze it into actions in terms of the other capabilities in theentry, certain X3.64/ISO 6429/ECMA-48 capabilities, and certain
DEC VT-series private modes (the set of recognized special
sequences has been selected for completeness over the existing terminfo database). Each report line consists of the capability name, followed by a colon and space, followed by a printableexpansion of the capability string with sections matching recog-
nized actions translated into {}-bracketed descriptions. Here is
a list of the DEC/ANSI special sequences recognized: Action Meaning---------------------
RIS full reset SC save cursor RC restore cursorLL home-down
RSR reset scroll region DECSTR soft reset (VT320)S7C1T 7-bit controls (VT220)
ISO DEC G0 enable DEC graphics for G0 ISO UK G0 enable UK chars for G0 ISO US G0 enable US chars for G0 ISO DEC G1 enable DEC graphics for G1 ISO UK G1 enable UK chars for G1 ISO US G1 enable US chars for G1 DECPAM application keypad mode DECPNM normal keypad mode DECANSI enter ANSI modeECMA[+-]AM keyboard action mode
ECMA[+-]IRM insert replace mode
ECMA[+-]SRM send receive mode
ECMA[+-]LNM linefeed mode
DEC[+-]CKM application cursor keys
DEC[+-]ANM set VT52 mode
DEC[+-]COLM 132-column mode
DEC[+-]SCLM smooth scroll
DEC[+-]SCNM reverse video mode
DEC[+-]OM origin mode
DEC[+-]AWM wraparound mode
DEC[+-]ARM auto-repeat mode
It also recognizes a SGR action corresponding to ANSI/ISO 6429/ECMA Set Graphics Rendition, with the values NORMAL, BOLD, UNDERLINE, BLINK, and REVERSE. All but NORMAL may be prefixedwith `+' (turn on) or `-' (turn off).
An SGR0 designates an empty highlight sequence (equivalent to {SGR:NORMAL}).-ll Set output format to terminfo.
-pp Ignore padding specifications when comparing strings.
-qq Make the comparison listing shorter by omitting subheadings, and
using "-" for absent capabilities, "@" for canceled rather than
"NULL".-RRsubset
Restrict output to a given subset. This option is for use with archaic versions of terminfo like those on SVr1, Ultrix, or HP/UX that do not support the full set of SVR4/XSI Curses terminfo; and variants such as AIX that have their own extensions incompatible with SVr4/XSI. Available terminfo subsets are "SVr1", "Ultrix", "HP", and "AIX"; see tteerrmmiinnffoo(5) for details. You can also choose the subset "BSD" which selects only capabilities with termcap equivalents recognized by 4.4BSD.-ss [d|i|l|c]
The -ss option sorts the fields within each type according to the
argument below:dd leave fields in the order that they are stored in the ter-
minfo database. ii sort by terminfo name. ll sort by the long C variable name. cc sort by the termcap name.If the -ss option is not given, the fields printed out will be
sorted alphabetically by the tteerrmmiinnffoo name within each type,except in the case of the -CC or the -LL options, which cause the
sorting to be done by the tteerrmmccaapp name or the long C variable name, respectively.-TT eliminates size-restrictions on the generated text. This is
mainly useful for testing and analysis, since the compileddescriptions are limited (e.g., 1023 for termcap, 4096 for ter-
minfo).-tt tells ttiicc to discard commented-out capabilities. Normally when
translating from terminfo to termcap, untranslatable capabilitiesare commented-out.
-VV reports the version of ncurses which was used in this program, and
exits.-vv n prints out tracing information on standard error as the program
runs. Higher values of n induce greater verbosity.-ww width
changes the output to width characters.-xx print information for user-defined capabilities. These are exten-
sions to the terminfo repertoire which can be loaded using the -xx
option of ttiicc. FILES /usr/share/terminfo Compiled terminal description database. EEXXTTEENNSSIIOONNSSThe -EE, -FF, -GG, -RR, -TT, -VV, -aa, -ee, -ff, -gg, -ii, -ll, -pp, -qq and -tt
options are not supported in SVr4 curses.The -rr option's notion of `termcap' capabilities is System V Release
4's. Actual BSD curses versions will have a more restricted set. Tosee only the 4.4BSD set, use -rr -RRBBSSDD.
BUGS
The -FF option of iinnffooccmmpp(1M) should be a ttooee(1M) mode.
SEE ALSO
iinnffooccmmpp(1M), ccaappttooiinnffoo(1M), iinnffoottooccaapp(1M), ttiicc(1M), ttooee(1M), ccuurrsseess(3X), tteerrmmiinnffoo(5). AUTHOR Eric S. Raymondand Thomas E. Dickey
infocmp(1M)