tutorial

tview and you - Creating Rich Terminal User Interfaces

This is an introduction to using tview to create rich terminal-based user interfaces with Go. Contents Primitives Widgets Elements Containers Thread Safety Example Application Primitives The Primitive interface is as follows: type Primitive interface { Draw(screen tcell.Screen) GetRect() (int, int, int, int) SetRect(x, y, width, height int) InputHandler() func(event *tcell.EventKey, setFocus func(p Primitive)) Focus(delegate func(p Primitive)) Blur() GetFocusable() Focusable } Box is the only primitive implemented.