Output the contents of a terminfo capability file (UNIX)
infocmp [-1CILQ] [-w width] [terminal_name]
- ("one") Force the output to contain one entry per
line. Without this option, output is printed to a maximum width
of 60 characters, each line containing as many entries as can fit
on that line.
- Generate output in termcap format.
- Generate output in terminfo format. This option is the default.
- Use the long C variable names listed in /usr/include/term.h
- Use the names that map onto the QNX console capabilities.
- -w width
- Force the output to the specified number of columns. As many entries as
fit on each line are output.
- The name of a terminal capability file to display. If the
TERMINFO environment variable is not set, the
file is read from the /usr/lib/terminfo
directory in a subdirectory named by the first letter of the terminal
name. For example, the VT100 terminfo file is stored
in: /usr/lib/terminfo/v/vt100. If set, the
TERMINFO environment variable defines a directory
where the compiled description file is read from. If a
terminal_name isn't specified, the terminal named
in the TERM environment variable is used.
The infocmp utility is used to output the contents of
a previously compiled terminfo capability file in a number
of formats. The default format is suitable for editing and recompilation
with the tic utility. The output is
sorted such that the Boolean capabilities are output first, followed by
the integer capabilities and then the string fields. The infocmp
utility, executed without any options, produces the terminfo
description of the currently defined terminal in a form suitable for
editing and recompilation with the tic utility.
If no options are specified and zero or one terminal name is specified,
the -I option is assumed.
John Strang, Linda Mui, & Tim O'Reilly, termcap
& terminfo, O'Reilly and Associates, 1988.