The
infocmp reconstructs the first available
terminfo(5) definiton found for
term and prints the result in a
terminfo(5) format. Capabilty types are grouped together and new types start new lines, first flags, then numbers, then strings. Capabilities are sorted by their name. If a second
term is given then the capabilies are compared against each other.
The following options are available:
-1
Print one capability per line.
-A database
Use this database to load the first terminal definition.
-B database
Use this database to load subsequent terminal definitions.
-a
Include commented out capabilities. This only works if the database was compiled with the
-a flag passed to
tic(1). This also sets the
-x flag as
infocmp retains commented out capabilities as non standard.
-c
Print capabilites common to each definition.
-n
Print capabilites that do not exist in either definition.
-q
Make the comparison listing shorter by omitting subheadings and using - for absent capabilities, @ for cancelled capapbilites rather than NULL.
-u
Build a new terminal description for the first terminal description, using subsequent terminal descriptions. This also sets the -a flag.
-w cols
Limit the width to cols.
-x
Include non-standard capabilities. More
-x only handles non-standard capabilities. This only works if the database was compiled with the
-x flag passed to
tic(1).