infocmp
displays and compares terminal capability descriptions from the terminfo
TLDR
Show current terminal capabilities
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
infocmp xterm
# Source format (can be compiled with tic)
infocmp -I xterm > xterm.ti
# Termcap format
infocmp -C xterm
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.
