```{index} single: termios_new; POSIX function ``` ```{index} single: POSIX::termios_new; Perl function ``` # termios_new Create a fresh `POSIX::Termios` object, all fields zeroed. ## Synopsis ```perl use POSIX; my $t = POSIX::Termios->new; $t->getattr(fileno(STDIN)); ``` ## What you get back A blessed `POSIX::Termios` reference. To fill it with the current terminal settings, follow up with `$t->getattr($fd)`. ## Differences from upstream Fully compatible with upstream POSIX. ## See also - `getattr`, `setattr` — populate and apply terminal settings.