package
17.12.1-ce-rc2+incompatible
Repository: https://github.com/docker-archive/engine.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
DisableEcho applies the specified state to the terminal connected to the file descriptor, with echo disabled.
GetFdInfo returns the file descriptor for an os.File and indicates whether the file represents a terminal.
GetWinsize returns the window size based on the specified file descriptor.
IsTerminal returns true if the given file descriptor is a terminal.
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.
NewEscapeProxy returns a new TTY proxy reader which wraps the given reader and detects when the specified escape keys are read, in which case the Read method will return an error of type EscapeError.
RestoreTerminal restores the terminal connected to the given file descriptor to a previous state.
SaveState saves the state of the terminal connected to the given file descriptor.
SetRawTerminal puts the terminal connected to the given file descriptor into raw mode and returns the previous state.
SetRawTerminalOutput puts the output of terminal connected to the given file descriptor into raw mode.
SetWinsize tries to set the specified window size for the specified file descriptor.
StdStreams returns the standard streams (stdin, stdout, stderr).
ToBytes converts a string representing a suite of key-sequence to the corresponding ASCII code.
# Variables
ASCII list the possible supported ASCII key sequence.
ErrInvalidState is returned if the state of the terminal is invalid.
# Structs
EscapeError is special error which returned by a TTY proxy reader's Read() method in case its detach escape sequence is read.
State represents the state of the terminal.
Winsize represents the size of the terminal window.
# Type aliases
Termios is the Unix API for terminal I/O.