```{index} single: termios_getattr; POSIX function ``` ```{index} single: POSIX::termios_getattr; Perl function ``` # termios_getattr Fill the `POSIX::Termios` object with the current settings of `$fd`. ## Synopsis ```perl $t->getattr(fileno(STDIN)); ``` ## What you get back `"0 but true"` on success, `undef` on failure. `$fd` defaults to `0` (stdin). ## Differences from upstream Fully compatible with upstream POSIX.