Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶
IsTerminal returns true if the given file descriptor is a terminal.
func Restore ¶
Restore restores the terminal connected to the given file descriptor to a previous state.
func RestoreTerminal ¶ added in v0.3.3
func RestoreTerminal(state *State)
func SetWinsize ¶ added in v0.3.4
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
func MakeRaw ¶
MakeRaw put the terminal connected to the given file descriptor into raw mode and returns the previous state of the terminal so that it can be restored.
func SetRawTerminal ¶ added in v0.3.3
Click to show internal directories.
Click to hide internal directories.