LinuxCommandLibrary

infocmp

displays and compares terminal capability descriptions from the terminfo

TLDR

Show current terminal capabilities

$ infocmp
copy
Show specific terminal
$ infocmp [xterm-256color]
copy
Compare two terminals
$ infocmp -d [xterm] [xterm-256color]
copy
Output in terminfo source format
$ infocmp -I [xterm]
copy
Show all capabilities
$ infocmp -1 [xterm]
copy

SYNOPSIS

infocmp [options] [termname...]

DESCRIPTION

infocmp displays and compares terminal capability descriptions from the terminfo database. It's useful for debugging terminal issues and understanding terminal features.
The command reads compiled terminfo entries and outputs them in readable format, supporting comparison between different terminal types.

PARAMETERS

termname

Terminal type to display.
-d
Compare two terminal descriptions.
-c
Compare with common capabilities.
-n
Compare with common capabilities, numeric format.
-I
Output terminfo source format.
-L
Use long C variable names.
-1
One capability per line.
-C
Output termcap format.
-r
Show resolved paths.
-A dir
Set terminfo directory.

OUTPUT FORMATS

$ # Default format
infocmp xterm

# Source format (can be compiled with tic)
infocmp -I xterm > xterm.ti

# Termcap format
infocmp -C xterm
copy

CAVEATS

Terminfo location varies by system. Some capabilities may be missing. Modern terminals have many extensions. Compare mode shows differences only.

HISTORY

infocmp is part of the ncurses library, which implements the terminfo database. The terminfo system replaced termcap for terminal capabilities, providing a more extensible format.

SEE ALSO

tic(1), terminfo(5), tput(1), toe(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community