Versions in this module Expand all Collapse all v1 v1.0.2 Jun 26, 2024 Changes in this version + var ErrInvalidState = errors.New("Invalid terminal state") — darwin/amd64, js/wasm, linux/amd64 + func DisableEcho(fd uintptr, state *State) error + func GetFdInfo(in interface{}) (fd uintptr, isTerminal 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 terminalState + func MakeRaw(fd uintptr) (previousState *State, err error) + func SaveState(fd uintptr) (*State, error) + func SetRawTerminal(fd uintptr) (previousState *State, err error) + func SetRawTerminalOutput(fd uintptr) (previousState *State, err error) + type Termios = unix.Termios — darwin/amd64, js/wasm, linux/amd64 + type Winsize struct + Height uint16 + Width uint16 + func GetWinsize(fd uintptr) (*Winsize, error)