[Previous] [Contents] [Index] [Next]

infocmp

Output the contents of a terminfo capability file (UNIX)

Syntax:

infocmp [-1CILQ] [-w width] [terminal_name]

Options:

-1
("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.
-C
Generate output in termcap format.
-I
Generate output in terminfo format. This option is the default.
-L
Use the long C variable names listed in /usr/include/term.h
-Q
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.
terminal_name
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.

Description:

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.

See also:

tic

John Strang, Linda Mui, & Tim O'Reilly, termcap & terminfo, O'Reilly and Associates, 1988.


[Previous] [Contents] [Index] [Next]