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.