Versions in this module Expand all Collapse all v0 v0.0.1 Feb 11, 2022 Changes in this version + const KeyBackspace + const KeyBackspace2 + const KeyEnter + const KeyEsc + const KeyEscape + const KeyTab + var KeyNames = map[Key]string + type Console struct + func NewConsole(normalinput bool, historyMaxLen int, color bool) *Console + func (cc *Console) Get() string + func (cc *Console) Pretext() string + func (cc *Console) Put(str string) + func (cc *Console) Putf(format string, a ...interface{}) + func (cc *Console) SetPretext(pretext string) + func (cc *Console) Stop() + type ConsoleInput struct — linux/amd64, windows/amd64 + func NewConsoleInput() *ConsoleInput + func (ci *ConsoleInput) Init() error + func (ci *ConsoleInput) PollEvent() *EventKey + func (ci *ConsoleInput) Stop() + type EditBox struct + func NewEditBox(historyMaxLen int) *EditBox + func (eb *EditBox) GetEnterText() string + func (eb *EditBox) GetShowText(color bool) string + func (eb *EditBox) GetText() string + func (eb *EditBox) Input(key *EventKey) + type EventKey struct + func NewEventKey(k Key, ch rune) *EventKey + func (ev *EventKey) Key() Key + func (ev *EventKey) Name() string + func (ev *EventKey) Rune() rune + func (ev *EventKey) When() time.Time + type Key int16 + const KeyACK + const KeyBEL + const KeyBS + const KeyBacktab + const KeyCAN + const KeyCR + const KeyCancel + const KeyCenter + const KeyClear + const KeyCtrlA + const KeyCtrlB + const KeyCtrlBackslash + const KeyCtrlC + const KeyCtrlCarat + const KeyCtrlD + const KeyCtrlE + const KeyCtrlF + const KeyCtrlG + const KeyCtrlH + const KeyCtrlI + const KeyCtrlJ + const KeyCtrlK + const KeyCtrlL + const KeyCtrlLeftSq + const KeyCtrlM + const KeyCtrlN + const KeyCtrlO + const KeyCtrlP + const KeyCtrlQ + const KeyCtrlR + const KeyCtrlRightSq + const KeyCtrlS + const KeyCtrlSpace + const KeyCtrlT + const KeyCtrlU + const KeyCtrlUnderscore + const KeyCtrlV + const KeyCtrlW + const KeyCtrlX + const KeyCtrlY + const KeyCtrlZ + const KeyDC1 + const KeyDC2 + const KeyDC3 + const KeyDC4 + const KeyDEL + const KeyDLE + const KeyDelete + const KeyDown + const KeyDownLeft + const KeyDownRight + const KeyEM + const KeyENQ + const KeyEOT + const KeyESC + const KeyETB + const KeyETX + const KeyEnd + const KeyExit + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF13 + const KeyF14 + const KeyF15 + const KeyF16 + const KeyF17 + const KeyF18 + const KeyF19 + const KeyF2 + const KeyF20 + const KeyF21 + const KeyF22 + const KeyF23 + const KeyF24 + const KeyF25 + const KeyF26 + const KeyF27 + const KeyF28 + const KeyF29 + const KeyF3 + const KeyF30 + const KeyF31 + const KeyF32 + const KeyF33 + const KeyF34 + const KeyF35 + const KeyF36 + const KeyF37 + const KeyF38 + const KeyF39 + const KeyF4 + const KeyF40 + const KeyF41 + const KeyF42 + const KeyF43 + const KeyF44 + const KeyF45 + const KeyF46 + const KeyF47 + const KeyF48 + const KeyF49 + const KeyF5 + const KeyF50 + const KeyF51 + const KeyF52 + const KeyF53 + const KeyF54 + const KeyF55 + const KeyF56 + const KeyF57 + const KeyF58 + const KeyF59 + const KeyF6 + const KeyF60 + const KeyF61 + const KeyF62 + const KeyF63 + const KeyF64 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyFF + const KeyFS + const KeyGS + const KeyHelp + const KeyHome + const KeyInsert + const KeyLF + const KeyLeft + const KeyNAK + const KeyNUL + const KeyPause + const KeyPgDn + const KeyPgUp + const KeyPrint + const KeyRS + const KeyRight + const KeyRune + const KeySI + const KeySO + const KeySOH + const KeySTX + const KeySUB + const KeySYN + const KeyTAB + const KeyUS + const KeyUp + const KeyUpLeft + const KeyUpRight + const KeyVT + type Terminfo struct — linux/amd64 + Aliases []string + AltChars string + AttrOff string + Bell string + Blink string + Bold string + Clear string + Colors int + Columns int + CursorBack1 string + CursorUp1 string + Dim string + EnableAcs string + EnterAcs string + EnterCA string + EnterKeypad string + ExitAcs string + ExitCA string + ExitKeypad string + HideCursor string + KeyAltDown string + KeyAltEnd string + KeyAltHome string + KeyAltLeft string + KeyAltRight string + KeyAltShfDown string + KeyAltShfEnd string + KeyAltShfHome string + KeyAltShfLeft string + KeyAltShfRight string + KeyAltShfUp string + KeyAltUp string + KeyBackspace string + KeyBacktab string + KeyCancel string + KeyClear string + KeyCtrlDown string + KeyCtrlEnd string + KeyCtrlHome string + KeyCtrlLeft string + KeyCtrlRight string + KeyCtrlShfDown string + KeyCtrlShfEnd string + KeyCtrlShfHome string + KeyCtrlShfLeft string + KeyCtrlShfRight string + KeyCtrlShfUp string + KeyCtrlUp string + KeyDelete string + KeyDown string + KeyEnd string + KeyExit string + KeyF1 string + KeyF10 string + KeyF11 string + KeyF12 string + KeyF13 string + KeyF14 string + KeyF15 string + KeyF16 string + KeyF17 string + KeyF18 string + KeyF19 string + KeyF2 string + KeyF20 string + KeyF21 string + KeyF22 string + KeyF23 string + KeyF24 string + KeyF25 string + KeyF26 string + KeyF27 string + KeyF28 string + KeyF29 string + KeyF3 string + KeyF30 string + KeyF31 string + KeyF32 string + KeyF33 string + KeyF34 string + KeyF35 string + KeyF36 string + KeyF37 string + KeyF38 string + KeyF39 string + KeyF4 string + KeyF40 string + KeyF41 string + KeyF42 string + KeyF43 string + KeyF44 string + KeyF45 string + KeyF46 string + KeyF47 string + KeyF48 string + KeyF49 string + KeyF5 string + KeyF50 string + KeyF51 string + KeyF52 string + KeyF53 string + KeyF54 string + KeyF55 string + KeyF56 string + KeyF57 string + KeyF58 string + KeyF59 string + KeyF6 string + KeyF60 string + KeyF61 string + KeyF62 string + KeyF63 string + KeyF64 string + KeyF7 string + KeyF8 string + KeyF9 string + KeyHelp string + KeyHome string + KeyInsert string + KeyLeft string + KeyMetaDown string + KeyMetaEnd string + KeyMetaHome string + KeyMetaLeft string + KeyMetaRight string + KeyMetaShfDown string + KeyMetaShfEnd string + KeyMetaShfHome string + KeyMetaShfLeft string + KeyMetaShfRight string + KeyMetaShfUp string + KeyMetaUp string + KeyPgDn string + KeyPgUp string + KeyPrint string + KeyRight string + KeyShfDown string + KeyShfEnd string + KeyShfHome string + KeyShfLeft string + KeyShfRight string + KeyShfUp string + KeyUp string + Lines int + Mouse string + MouseMode string + Name string + PadChar string + Reverse string + SetBg string + SetBgRGB string + SetCursor string + SetFg string + SetFgBg string + SetFgBgRGB string + SetFgRGB string + ShowCursor string + Underline string + func LoadTerminfo(name string) (*Terminfo, string, error)