Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to see a all the capabilities (terminfo or termcap) of the current terminal on command line?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

You can use infocmp -L -1 to print out a terminfo entry for current TERM.

I'm not sure of an equivalent for termcap but termcap is readable plain text (if you know it's capability codes). I guess you could make use of captoinfo in conjunction with infocmp

share|improve this answer
    
To be clear: Just infocmp also works (the -I −1 option formats it with one capability per line). –  Chris Page Jul 4 '12 at 2:10
    
@ChrisPage: Good point. Actually I meant to write -L not -I, which gives longer names that are easier to understand if you are unfamiliar with terminfo capability names. The -1 aids readability. –  RedGrittyBrick Jul 4 '12 at 8:41
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.