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.