home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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::Cap Perl in a Nutshell Next: Reference: Tgoto
8.138 Term::Cap Book Index Reference: Tgoto

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.