```{index} single: POSIX::Termios ``` # POSIX::Termios ```{pperl-module-badges} POSIX::Termios ``` ## Functions ### Terminal control #### [`new`](Termios/new) Create a fresh `POSIX::Termios` object, all fields zeroed. #### [`getattr`](Termios/getattr) Fill the `POSIX::Termios` object with the current settings of `$fd`. #### [`setattr`](Termios/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`](Termios/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 `NCCS` croak with `Bad setcc subscript`. - The change is not applied until you call `setattr`. **Differences from upstream** Fully compatible with upstream POSIX. ```{toctree} :hidden: :maxdepth: 1 Termios/new Termios/getattr Termios/setattr Termios/getcc ```