Skip to content
forked from rivo/tview

Rich interactive widgets for terminal-based UIs written in Go

License

Notifications You must be signed in to change notification settings

diamondburned/tview

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rich Interactive Widgets for Terminal UIs

This Go package provides commonly needed components for terminal based user interfaces.

Pre-warning

DO NOT USE THIS! JUST DON'T!

This fork

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.

Example usage

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
	})
}

About

Rich interactive widgets for terminal-based UIs written in Go

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%