To show all of the capabilities of a terminal using ncurses, you need different options than were suggested earlier. The
-1 options show long names and a single column, respectively.
Since release 5.0 in 1999, ncurses has supported user-definable (extended) capabilities which may be compiled into a terminfo entry if the tic
-x option is given. xterm and other terminal entries use these, for additional function key definitions and other features. There is a summary of these in the terminal database.
Since 2004, infocmp has had a comparable
-x option, which is used to show the extended capabilities. So you would use this to print all terminfo capabilities:
You would use
infocmp with different options to show the terminal description in termcap format, e.g.,
-C (termcap names) and
-r (termcap format). termcap entries are conventionally limited to 1023 bytes. However, since all of the data is from the terminal database (terminfo), ncurses can optionally relax that limit, e.g., using
-T. Finally, using the
-x option, infocmp can display user-defined capabilities in termcap format — provided that their names are no longer than 2 characters.