termios_setattr#

Apply the POSIX::Termios settings to $fd.

Σύνοψη#

use POSIX qw(TCSANOW TCSADRAIN);
$t->setattr(fileno(STDIN), TCSANOW);

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

"0 but true" on success, undef on failure. $fd defaults to 0, $optional_actions defaults to TCSANOW (apply immediately).

Οριακές περιπτώσεις#

  • Negative $optional_actions sets $! to EINVAL.

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

Fully compatible with upstream POSIX.