termios_new#

Create a fresh POSIX::Termios object, all fields zeroed.

Σύνοψη#

use POSIX;
my $t = POSIX::Termios->new;
$t->getattr(fileno(STDIN));

Τι επιστρέφεται#

A blessed POSIX::Termios reference. To fill it with the current terminal settings, follow up with $t->getattr($fd).

Διαφορές από το upstream#

Fully compatible with upstream POSIX.

Δείτε επίσης#

  • getattr, setattr - populate and apply terminal settings.