[−][src]Module tuikit::raw
Managing raw mode.
Raw mode is a particular state a TTY can have. It signifies that:
- No line buffering (the input is given byte-by-byte).
- The input is not written out, instead it has to be done manually by the programmer.
- The output is not canonicalized (for example,
\n
means "go one line down", not "line break").
Example
use tuikit::raw::IntoRawMode; use std::io::{Write, stdout}; fn main() { let mut stdout = stdout().into_raw_mode().unwrap(); write!(stdout, "Hey there.").unwrap(); }
Structs
RawTerminal | A terminal restorer, which keeps the previous state of the terminal, and restores it, when dropped. |
Traits
IntoRawMode | Types which can be converted into "raw mode". |
Functions
get_tty | Get the TTY device. |