Reference: Tgetent
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:52:40Z

#

| Chapter 8 Standard Modules |

## 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).

8.138 Term::Cap |  | Reference: Tgoto