Versions in this module Expand all Collapse all v0 v0.5.0 May 2, 2023 Changes in this version + var ASCII = []string + 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 NewEscapeProxy(r io.Reader, escapeKeys []byte) io.Reader + func RestoreTerminal(fd uintptr, state *State) error + func SetWinsize(fd uintptr, ws *Winsize) error + func StdStreams() (stdIn io.ReadCloser, stdOut, stdErr io.Writer) + func ToBytes(keys string) ([]byte, error) + type EscapeError struct + func (EscapeError) Error() string + 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)