This Go package provides commonly needed components for terminal based user interfaces.
DO NOT USE THIS! JUST DON'T!
This fork is made to experiment with reactive UI programming. The objective is to expose enough things to make widgets independent enough. This will greatly reduce clutter in the main code.
package main
func main() {
// Initialize the TUI. This does NOT draw.
tview.Initialize()
// Start the main blocking event loop.
if err := tview.Run(); err != nil {
panic(err)
}
}
package primitive
func (p *Primitive) SomeCallback() {
// Callback things
<<<<<<< HEAD
tview.QueueApplication(func(app *Application) bool {
return true // Draw when true
})
}