Skip to main content

Module tty

Module tty 

Source
Expand description

Terminal interface types TTY management — provides [Tty], [stdin], [stdout], [get_size], and [set_mode] across all platforms.

Structs§

Tty
Async handle to a TTY file descriptor.

Functions§

get_size
Query the terminal size for handle (interpreted as a file descriptor).
set_mode
Set the terminal mode for handle.
stdin
Return an async handle to the process’s standard input (fd 0).
stdout
Return an async handle to the process’s standard output (fd 1).