Versions in this module Expand all Collapse all v0 v0.1.0 Jan 27, 2014 Changes in this version + const AttrBold + const AttrReverse + const AttrUnderline + const ColorBlack + const ColorBlue + const ColorCyan + const ColorDefault + const ColorGreen + const ColorMagenta + const ColorRed + const ColorWhite + const ColorYellow + const KeyArrowDown + const KeyArrowLeft + const KeyArrowRight + const KeyArrowUp + const KeyBackspace + const KeyBackspace2 + const KeyCtrl2 + const KeyCtrl3 + const KeyCtrl4 + const KeyCtrl5 + const KeyCtrl6 + const KeyCtrl7 + const KeyCtrl8 + const KeyCtrlA + const KeyCtrlB + const KeyCtrlBackslash + const KeyCtrlC + const KeyCtrlD + const KeyCtrlE + const KeyCtrlF + const KeyCtrlG + const KeyCtrlH + const KeyCtrlI + const KeyCtrlJ + const KeyCtrlK + const KeyCtrlL + const KeyCtrlLsqBracket + const KeyCtrlM + const KeyCtrlN + const KeyCtrlO + const KeyCtrlP + const KeyCtrlQ + const KeyCtrlR + const KeyCtrlRsqBracket + const KeyCtrlS + const KeyCtrlSlash + const KeyCtrlSpace + const KeyCtrlT + const KeyCtrlTilde + const KeyCtrlU + const KeyCtrlUnderscore + const KeyCtrlV + const KeyCtrlW + const KeyCtrlX + const KeyCtrlY + const KeyCtrlZ + const KeyDelete + const KeyEnd + const KeyEnter + const KeyEsc + const KeyF1 + const KeyF10 + const KeyF11 + const KeyF12 + const KeyF2 + const KeyF3 + const KeyF4 + const KeyF5 + const KeyF6 + const KeyF7 + const KeyF8 + const KeyF9 + const KeyHome + const KeyInsert + const KeyPgdn + const KeyPgup + const KeySpace + const KeyTab + var ErrorQuit error = errors.New("quit") + var ErrorUnkView error = errors.New("unknown view") + type Attribute termbox.Attribute + type Gui struct + BgColor Attribute + FgColor Attribute + SelBgColor Attribute + SelFgColor Attribute + ShowCursor bool + func NewGui() *Gui + func (g *Gui) Close() + func (g *Gui) CurrentView() *View + func (g *Gui) DeleteView(name string) error + func (g *Gui) Flush() error + func (g *Gui) Init() error + func (g *Gui) MainLoop() error + func (g *Gui) Rune(x, y int) (rune, error) + func (g *Gui) SetCurrentView(name string) error + func (g *Gui) SetKeybinding(viewname string, key interface{}, mod Modifier, h KeybindingHandler) error + func (g *Gui) SetLayout(layout func(*Gui) error) + func (g *Gui) SetRune(x, y int, ch rune) error + func (g *Gui) SetView(name string, x0, y0, x1, y1 int) (*View, error) + func (g *Gui) Size() (x, y int) + func (g *Gui) View(name string) *View + type Key termbox.Key + type KeybindingHandler func(*Gui, *View) error + type Modifier termbox.Modifier + const ModAlt + type View struct + Editable bool + Highlight bool + func (v *View) Clear() + func (v *View) Cursor() (x, y int) + func (v *View) Line(y int) (string, error) + func (v *View) Name() string + func (v *View) Origin() (x, y int) + func (v *View) SetCursor(x, y int) error + func (v *View) SetOrigin(x, y int) error + func (v *View) Size() (x, y int) + func (v *View) Word(x, y int) (string, error) + func (v *View) Write(p []byte) (n int, err error)