Term::Terminfo - access the terminfo database
Term::Terminfo
use Term::Terminfo; my $ti = Term::Terminfo->new; printf "This terminal %s do overstrike\n", $ti->getflag('os') ? "can" : "cannot"; printf "Tabs on this terminal are initially every %d columns\n", $ti->getnum('it');
Objects in this class provide access to terminfo database entires.
Constructs a new Term::Terminfo object representing the given termtype. If $termtype is not defined, $ENV{TERM} will be used instead. If that variable is empty, vt100 will be used.
$termtype
$ENV{TERM}
vt100
Returns the value of the named boolean capability.
Returns the value of the named numeric capability.
Returns the value of the named string capability.
This distribution provides a small accessor interface onto terminfo. It was originally created simply so I can get at the bce capability flag of the current terminal, because screen unlike every other terminal ever, doesn't do this. Grrr.
bce
The current implementation just screenscrapes the output of `infocmp`. It should probably be implemented more sanely by direct access to terminfo. It probably also wants more accessors for things like tparm and tputs. I may at some point consider them.
`infocmp`
tparm
tputs
Paul Evans <leonerd@leonerd.org.uk>
To install Term::Terminfo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::Terminfo
CPAN shell
perl -MCPAN -e shell install Term::Terminfo
For more information on module installation, please visit the detailed CPAN module installation guide.