Documentation ¶
Index ¶
- Variables
- func DisableEcho(fd uintptr, state *State) error
- func GetFdInfo(in interface{}) (uintptr, bool)
- func IsTerminal(fd uintptr) bool
- func RestoreTerminal(fd uintptr, state *State) error
- func SetWinsize(fd uintptr, ws *Winsize) error
- func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer)
- type State
- type Termios
- type Winsize
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidState = errors.New("Invalid terminal state")
)
Functions ¶
func DisableEcho ¶
func IsTerminal ¶
IsTerminal returns true if the given file descriptor is a terminal.
func RestoreTerminal ¶
Restore restores the terminal connected to the given file descriptor to a previous state.
func SetWinsize ¶
func StdStreams ¶ added in v1.0.2
func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer)
Types ¶
Click to show internal directories.
Click to hide internal directories.