Name
Tgetent
Synopsis
$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).
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.