Documentation ¶
Overview ¶
Package term provides structures and helper functions to work with terminal (state, sizes).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidState is returned if the state of the terminal is invalid. ErrInvalidState = errors.New("Invalid terminal state") )
Functions ¶
func DisableEcho ¶
DisableEcho applies the specified state to the terminal connected to the file descriptor, with echo disabled.
func RestoreTerminal ¶
RestoreTerminal restores the terminal connected to the given file descriptor to a previous state.
Types ¶
Click to show internal directories.
Click to hide internal directories.