Golang terminal dashboard
Go to file
Caleb Bassi d32fffb5e9 Update changelog 2018-11-29 08:49:07 -08:00
_examples Rename mbarchart to stackedbarchart 2018-11-28 18:50:44 -08:00
debug Fix https://github.com/gizak/termui/issues/97 2017-05-02 22:11:46 +08:00
extra add missing characters 2017-07-17 19:24:37 +09:00
scripts Misc 2018-11-28 21:50:10 -08:00
test Update copyright 2017-01-14 01:07:43 -05:00
.gitignore Remove panicparse 2018-09-06 13:57:56 -07:00
.travis.yml Update travis config 2015-03-20 13:06:29 -04:00
CHANGELOG.md Update changelog 2018-11-29 08:49:07 -08:00
LICENSE Initial commit 2015-02-03 09:09:27 -05:00
README.md Update readme 2018-11-28 21:44:42 -08:00
barchart.go Minor refactor 2018-09-06 14:48:09 -07:00
block.go Minor refactor 2018-09-06 14:48:09 -07:00
block_common.go Update copyright 2017-01-14 01:07:43 -05:00
block_test.go Minor refactor 2018-09-06 14:48:09 -07:00
block_windows.go add missing characters 2017-07-17 19:24:37 +09:00
buffer.go Update copyright 2017-01-14 01:07:43 -05:00
buffer_test.go Update copyright 2017-01-14 01:07:43 -05:00
canvas.go Update copyright 2017-01-14 01:07:43 -05:00
canvas_test.go Misc 2018-11-28 21:50:10 -08:00
doc.go Update godoc 2018-11-28 20:38:11 -08:00
events.go Rework events (again) 2018-11-28 18:19:34 -08:00
events_test.go Update copyright 2017-01-14 01:07:43 -05:00
gauge.go Minor refactor 2018-09-06 14:48:09 -07:00
go.mod Migrate from dep to vgo 2018-11-22 13:02:44 -08:00
go.sum Migrate from dep to vgo 2018-11-22 13:02:44 -08:00
grid.go spelling: implements 2016-03-14 05:47:25 +00:00
grid_test.go Update copyright 2017-01-14 01:07:43 -05:00
helper.go Minor refactor 2018-09-06 14:48:09 -07:00
helper_test.go Update copyright 2017-01-14 01:07:43 -05:00
linechart.go Minor refactor 2018-09-06 14:48:09 -07:00
linechart_others.go Update copyright 2017-01-14 01:07:43 -05:00
linechart_windows.go Update copyright 2017-01-14 01:07:43 -05:00
list.go Minor refactor 2018-09-06 14:48:09 -07:00
par_test.go Update copyright 2017-01-14 01:07:43 -05:00
paragraph.go Rename Par to Paragraph 2018-11-28 18:25:38 -08:00
piechart.go Cleanup piechart 2018-08-16 20:22:32 -07:00
pos.go Update copyright 2017-01-14 01:07:43 -05:00
pos_test.go Update copyright 2017-01-14 01:07:43 -05:00
render.go Rework events (again) 2018-11-28 18:19:34 -08:00
sparkline.go Minor refactor 2018-09-06 14:48:09 -07:00
stackedbarchart.go Rename mbarchart to stackedbarchart 2018-11-28 18:50:44 -08:00
table.go Minor refactor 2018-09-06 14:48:09 -07:00
textbuilder.go 256 color support 2018-08-16 19:02:36 -07:00
textbuilder_test.go Update copyright 2017-01-14 01:07:43 -05:00
theme.go Minor refactor 2018-09-06 14:48:09 -07:00
theme_test.go Update copyright 2017-01-14 01:07:43 -05:00
widget.go Rework event system 2018-09-06 16:43:11 -07: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")
	ui.Render(p)

	for {
		e := <-ui.PollEvent()
		switch e.ID {
		case "q", "<C-c>":
			return
		}
	}
}

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