Crate term

Source
Expand description

Functionality to assist with managing the terminal/console/tty.

Structs§

Termios
Opaque wrapper around libc::termios.

Enums§

Error

Functions§

enable_vt_and_utf8
Enables VT and UTF-8 output. No-op on non-Windows platforms.
get_termios
Get the current termios settings for stderr.
raw_stderr
Returns a non-buffering stderr, with no special console handling on Windows.
raw_stdout
Returns a non-buffering stdout, with no special console handling on Windows.
revert_terminal_on_panic
Sets a panic handler to restore the terminal state when the process panics.
set_console_title
Sets the name of the console window.
set_raw_console
Enables or disables raw console mode.
set_termios
Set the termios settings for stderr.