Versions in this module Expand all Collapse all v0 v0.7.0 Nov 8, 2015 v0.6.15 Sep 26, 2015 Changes in this version + var ErrPasteIndicator = pasteIndicatorError + func GetSize(fd int) (width, height int, err error) — darwin/amd64, linux/amd64, windows/amd64 + func IsTerminal(fd int) bool — darwin/amd64, linux/amd64, windows/amd64 + func ReadPassword(fd int) ([]byte, error) — darwin/amd64, linux/amd64, windows/amd64 + func Restore(fd int, state *State) error — darwin/amd64, linux/amd64, windows/amd64 + type EscapeCodes struct + Black []byte + Blue []byte + Cyan []byte + Green []byte + Magenta []byte + Red []byte + Reset []byte + White []byte + Yellow []byte + type State struct — darwin/amd64, linux/amd64, windows/amd64 + func GetState(fd int) (*State, error) + func MakeRaw(fd int) (*State, error) + type Terminal struct + AutoCompleteCallback func(line string, pos int, key rune) (newLine string, newPos int, ok bool) + Escape *EscapeCodes + func NewTerminal(c io.ReadWriter, prompt string) *Terminal + func (t *Terminal) ReadLine() (line string, err error) + func (t *Terminal) ReadPassword(prompt string) (line string, err error) + func (t *Terminal) SetBracketedPasteMode(on bool) + func (t *Terminal) SetPrompt(prompt string) + func (t *Terminal) SetSize(width, height int) error + func (t *Terminal) Write(buf []byte) (n int, err error)