June 2002
Beginner
759 pages
80h 42m
English
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 =>
termtypeTerminal type. Defaults to the value of the
environment variable TERM if
termtype is false or
undefined.
OSPEED =>
ospeedThe 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).