Skip to main contentModule stty
Source - SttyConfig
- Parsed stty configuration.
- SttyAction
- The result of parsing stty arguments.
- apply_flag
- Apply a single flag setting. Returns true if the argument was recognized.
- apply_settings
- Apply settings from the parsed arguments to a termios structure.
Returns Ok(true) if any changes were made, Ok(false) otherwise.
- baud_to_num
- Convert a baud rate constant to its numeric value.
- find_special_char
- Look up a special character name and return its index.
- format_cc
- Format a control character for display.
- get_termios
- Get the termios structure for a file descriptor.
- get_winsize
- Get the window size for a file descriptor.
- num_to_baud
- Convert a numeric baud value to the corresponding constant.
- open_device
- Open a device and return its file descriptor.
- parse_args
- Parse command-line arguments for stty.
- parse_control_char
- Parse a control character specification like “^C”, “^?”, “^-”, or a literal.
- print_all
- Print all terminal settings (stty -a).
- print_size
- Print terminal size as “rows cols”.
- print_speed
- Print terminal speed.
- set_cooked
- Set cooked mode (undo raw) on a termios structure.
- set_raw
- Set raw mode on a termios structure.
- set_sane
- Apply “sane” settings to a termios structure.
- set_termios
- Set the termios structure for a file descriptor.