Expand description
The terminal a session talks through.
Terminal lets tests and custom transports drive a session over
in-memory pipes; Tty is the process’s own stdin/stdout in raw mode
(poll(2) on Unix, a console wait on Windows). Tty and tty detection
are available only on Unix and Windows; Terminal is portable.
Waker interrupts a session’s wait for input from another thread.
Structs§
- Tty
- The process’s own terminal (stdin and stdout), in raw mode while it lives.
- Waker
- Wakes a session blocked in
Session::nextfrom any thread: the wait returnsOk(None).
Traits§
- Terminal
- A byte stream to a terminal with a timed read.
Functions§
- columns
- The width of the terminal on stdout in columns, when it is one.
- is_tty
- Whether stdin and stdout are both terminals.
- stdout_
is_ tty - Whether stdout is a terminal.