Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add toe utility #32

Open
tpimh opened this issue Sep 15, 2017 · 7 comments
Open

Add toe utility #32

tpimh opened this issue Sep 15, 2017 · 7 comments

Comments

@tpimh
Copy link

tpimh commented Sep 15, 2017

toe - table of (terminfo) entries

With 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.

@rofl0r
Copy link
Member

rofl0r commented Sep 20, 2017

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).

@rofl0r rofl0r closed this as completed Sep 20, 2017
@tpimh
Copy link
Author

tpimh commented Sep 21, 2017

Well, if it's not toe, there should be some other utility to print the contents of this binary database.

@rofl0r
Copy link
Member

rofl0r commented Sep 21, 2017

$ 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 ?

@rofl0r rofl0r reopened this Sep 21, 2017
@tpimh
Copy link
Author

tpimh commented Sep 21, 2017

Well, not exactly. It always shows only xterm-256color, but I'm sure there should also be at least vt100 and other popular options.

@rofl0r
Copy link
Member

rofl0r commented Sep 22, 2017

so basically you want it to print a list of all built-in supported TERMs, for use with infocmp to query the details ?

@tpimh
Copy link
Author

tpimh commented Sep 22, 2017

Yes, is it possible with infocmp?

@rofl0r
Copy link
Member

rofl0r commented Sep 22, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants