$terminal->Trequire(caps)
terminal
caps
Checks to see whether the named capabilities, caps, are defined in the terminal's termcap entry. For example:
$terminal->Trequire(qw/ce ku kd/);
Carp::croak