Versions in this module Expand all Collapse all v0 v0.1.0 Aug 8, 2018 Changes in this version + const KeyA1 + const KeyA3 + const KeyB2 + const KeyBackspace + const KeyBeg + const KeyBreak + const KeyBtab + const KeyC1 + const KeyC3 + const KeyCancel + const KeyCatab + const KeyClear + const KeyClose + const KeyCommand + const KeyCopy + const KeyCreate + const KeyCtab + const KeyDc + const KeyDl + const KeyDown + const KeyEic + const KeyEnd + const KeyEnter + const KeyEol + const KeyEos + const KeyEvent + 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 KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyFind + const KeyHelp + const KeyHome + const KeyIc + const KeyIl + const KeyLeft + const KeyLl + const KeyMark + const KeyMessage + const KeyMouse + const KeyMove + const KeyNext + const KeyNpage + const KeyOpen + const KeyOptions + const KeyPpage + const KeyPrevious + const KeyPrint + const KeyRangeEnd + const KeyRangeStart + const KeyRedo + const KeyReference + const KeyRefresh + const KeyReplace + const KeyReset + const KeyResize + const KeyRestart + const KeyResume + const KeyRight + const KeySBeg + const KeySCancel + const KeySCommand + const KeySCopy + const KeySCreate + const KeySDc + const KeySDl + const KeySEnd + const KeySEol + const KeySExit + const KeySFind + const KeySHelp + const KeySHome + const KeySIc + const KeySLeft + const KeySMessage + const KeySMove + const KeySNext + const KeySOptions + const KeySPrevious + const KeySPrint + const KeySRedo + const KeySReplace + const KeySRight + const KeySRsume + const KeySSave + const KeySSuspend + const KeySUndo + const KeySave + const KeySelect + const KeySf + const KeySr + const KeySreset + const KeyStab + const KeySuspend + const KeyTimeout + const KeyUndo + const KeyUp + var ErrColorFailed = errors.New("color setting failed") + var ErrNotSupported = errors.New("setting not supported") + func Beep() + func EndWin() + func NumColorPairs() int + func NumColors() int + type AttrType int + var AttrAltcharset AttrType = C.A_ALTCHARSET + var AttrBlink AttrType = C.A_BLINK + var AttrBold AttrType = C.A_BOLD + var AttrDim AttrType = C.A_DIM + var AttrInvis AttrType = C.A_INVIS + var AttrNormal AttrType = C.A_NORMAL + var AttrProtect AttrType = C.A_PROTECT + var AttrReverse AttrType = C.A_REVERSE + var AttrStandout AttrType = C.A_STANDOUT + var AttrUnderline AttrType = C.A_UNDERLINE + type Color int + var ColorBlack Color = C.COLOR_BLACK + var ColorBlue Color = C.COLOR_BLUE + var ColorCyan Color = C.COLOR_CYAN + var ColorGreen Color = C.COLOR_GREEN + var ColorMagenta Color = C.COLOR_MAGENTA + var ColorRed Color = C.COLOR_RED + var ColorWhite Color = C.COLOR_WHITE + var ColorYellow Color = C.COLOR_YELLOW + func (color Color) Init(red, green, blue int) error + type ColorPair int + func (pair ColorPair) AsAttr() AttrType + func (pair ColorPair) Init(fg, bg Color) error + type CursorVisibility int + const CursorOff + const CursorOn + const CursorStrong + func CursSet(visibility CursorVisibility) (CursorVisibility, error) + type Window struct + func Init() *Window + func NewWin(nLines, nCols, beginY, beginX int) *Window + func (w *Window) AddStr(s string) + func (w *Window) AttrGet() AttrType + func (w *Window) AttrOff(attrs AttrType) + func (w *Window) AttrOn(attrs AttrType) + func (w *Window) AttrSet(attrs AttrType) + func (w *Window) ClrToBot() + func (w *Window) ClrToEol() + func (w *Window) Erase() + func (w *Window) GetBegYX() (int, int) + func (w *Window) GetCh() rune + func (w *Window) GetMaxYX() (int, int) + func (w *Window) GetTimeout() int + func (w *Window) GetYX() (int, int) + func (w *Window) IdlOk(bf bool) + func (w *Window) Move(y, x int) + func (w *Window) MvAddStr(y, x int, s string) + func (w *Window) Print(a ...interface{}) + func (w *Window) Printf(format string, a ...interface{}) + func (w *Window) Println(a ...interface{}) + func (w *Window) Readline(maxLen int) string + func (w *Window) Refresh() + func (w *Window) ScrollOk(bf bool) + func (w *Window) SetBackground(char string, attrs AttrType, colorPair ColorPair) + func (w *Window) SetTimeout(delay int)