Open tpimh opened 6 years ago
i just wanted to add it, then noticed that this tool is not even in netbsd proper... probably because netbsd curses doesn't use terminfo directories at all (but a single binary database instead).
Well, if it's not toe, there should be some other utility to print the contents of this binary database.
$ infocmp xterm-256color
# Reconstructed from /home/rofl/.terminfo.cdb
xterm-256color|xterm with 256 colors,
am, bce, ccc, km, mc5i, mir, msgr, npc, xenl,
colors#256, cols#80, it#8, lines#24, pairs#32767,
is that about what you imagined ?
Well, not exactly. It always shows only xterm-256color
, but I'm sure there should also be at least vt100
and other popular options.
so basically you want it to print a list of all built-in supported TERMs, for use with infocmp to query the details ?
Yes, is it possible with infocmp?
it seems the listing aspect is currently not implemented, but it would be trivial to add it (less than 10 lines, i'd guess). i'll forward this to Roy Marples and see what he thinks about it.
toe
- table of (terminfo) entriesWith no options, toe lists all available terminal types by primary name with descriptions. File arguments specify the directories to be scanned; if no such arguments are given, your default terminfo direc‐ tory is scanned. If you also specify the -h option, a directory header will be issued as each directory is entered.