You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/despair86/tview/v2

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/despair86/tview/v2

v2.4.0
Source
Go
Version published
Created
Source

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

FAQs

Package last updated on 24 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts