expvarmon/vendor/github.com/gizak/termui
Ivan Danyliuk 8bf297f0fa
Vendor termui package due to constant API breaks :/
2019-02-04 13:30:27 +01:00
..
.gitignore Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
.travis.yml Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
CHANGELOG.md Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
LICENSE Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
README.md Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
barchart.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
block.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
block_common.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
block_windows.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
buffer.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
canvas.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
doc.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
events.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
gauge.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
go.mod Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
go.sum Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
grid.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
linechart.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
linechart_others.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
linechart_windows.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
list.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
paragraph.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
piechart.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
position.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
render.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
sparkline.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
stacked_barchart.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
table.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
tabpane.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
textbuilder.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
theme.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
utils.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00
widget.go Vendor termui package due to constant API breaks :/ 2019-02-04 13:30:27 +01:00

README.md

termui

Build Status Doc Status

demo cast under osx 10.10; Terminal.app; Menlo Regular 12pt.)

termui is a cross-platform, easy-to-compile, and fully-customizable terminal dashboard built on top of termbox-go. It is inspired by blessed-contrib and written purely in Go.

termui is currently undergoing some API changes so make sure to check the changelog when upgrading

Installation

Installing from the master branch is recommended:

go get -u github.com/gizak/termui@master

Usage

Hello World

package main

import ui "github.com/gizak/termui"

func main() {
	err := ui.Init()
	if err != nil {
		panic(err)
	}
	defer ui.Close()

	p := ui.NewParagraph("Hello World!")
	p.Width = 25
	p.Height = 5
	ui.Render(p)

	for e := range ui.PollEvents() {
		if e.Type == ui.KeyboardEvent {
			break
		}
	}
}

Widgets

Click image to see the corresponding demo codes.

barchart gauge linechart list paragraph sparklines stackedbarchart table

Examples

Examples can be found in _examples. Run with go run _examples/... or run all of them consecutively with ./scripts/run_examples.py.

Documentation

  • godoc for code documentation
  • wiki for general information

Uses

License

This library is under the MIT License