Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.138 Term::CapChapter 8
Standard Modules
Next: Reference: Tgoto
 

Tgetent

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

TERM => termtype

Terminal type. Defaults to the value of the environment variable TERM if termtype is false or undefined.

OSPEED => ospeed

The terminal output bit rate, specified as either a POSIX termios/SYSV termio speed or an old BSD-style speed. You can use the POSIX module to get your terminal's output speed (in ospeed here).


Previous: 8.138 Term::CapPerl in a NutshellNext: Reference: Tgoto
8.138 Term::CapBook IndexReference: Tgoto