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 ¶
Functions ¶
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 StdStreams ¶ added in v0.3.0
func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer)
Types ¶
Click to show internal directories.
Click to hide internal directories.