Skip to main content

Crate term

Crate term 

Source
Expand description

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

Structs§

Termios
Opaque wrapper around libc::termios.

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.
open_pty
Opens a PTY pair, returning (primary, secondary).
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_termios
Set the termios settings for stderr.