Crate pseudoterm

source ·

Structs

Configurable options for opening PTYs
A structure that will automatically reset terminal mode when dropped
A cross-platform wrapper around underlying the termios representation
A way to get/set the termios flags. On some operating systems this struct can keep internal data to avoid redundant system calls.
How big a terminal window is
A way to get/set the window size. On some operating systems this struct can keep internal data to avoid redundant system calls.

Functions

Get the window size for the specified file. This is a shortcut for:
Returns true if the file is a TTY/PTY. This usually means the program is ran interactively and not for example piped to another program.
Open a PTY master and slave. Optionally resized to the specified size
Prepare a Command with a slave as stdin/stdout/stderr