POSIX::Termios#
Functions#
Terminal control#
new#
Create a fresh POSIX::Termios object, all fields zeroed.
getattr#
Fill the POSIX::Termios object with the current settings of $fd.
setattr#
Apply the POSIX::Termios settings to $fd.
getispeed#
Input baud rate encoded in the termios structure.
What you get back
The encoded speed as an integer (compare against B9600, B115200, etc., which this module also exports).
Differences from upstream
Fully compatible with upstream POSIX.
getospeed#
Output baud rate encoded in the termios structure.
Differences from upstream
Fully compatible with upstream POSIX.
setispeed#
Encode an input baud rate into the termios structure.
What you get back
"0 but true" on success, undef on failure. The change is not applied to the terminal until you call setattr.
Differences from upstream
Fully compatible with upstream POSIX.
setospeed#
Encode an output baud rate into the termios structure.
Differences from upstream
Fully compatible with upstream POSIX.
getcc#
Value of a special control character in the termios structure.
setcc#
Set a special control character in the termios structure.
Edge cases
Indices beyond
NCCScroak withBad setcc subscript.The change is not applied until you call
setattr.
Differences from upstream
Fully compatible with upstream POSIX.