8.196. Term::CapProvides low-level functions to extract and use capabilities from a terminal capability (termcap) database. For general information about the use of this database, see the termcap(5) manpage. Provides the following functions.
$terminal = Tgetent Term::Cap { TERM => termtype, OSPEED=>ospeed } Acts as the constructor for Term::Cap. Extracts the termcap entry for terminal type termtype and returns a reference to a terminal object. The termcap entry itself is $terminal->{TERMCAP}. Calls Carp::croak on failure. Takes the following arguments:
$terminal->Tgoto('cm', col, row[, fh]) Produces control string to move the cursor relative to the screen. Doesn't cache output strings, but does % expansion as needed on control string. Takes the following arguments:
$terminal->Tpad(string, count, fh) Specifies padding required to create delay needed by terminal. Takes the following arguments:
$terminal->Tputs('cap', count[, fh]) Produces control string for capabilities other than cursor movement. Does not do % expansion, but does cache output strings if $count = 1. Takes the following arguments:
$terminal->Trequire(caps) Checks to see whether the named capabilities, caps, are defined in the terminal's termcap entry. For example: $terminal->Trequire(qw/ce ku kd/); Any undefined capabilities are listed, and Carp::croak is called. Copyright © 2002 O'Reilly & Associates. All rights reserved. |
|