mirror of
https://github.com/gizak/termui.git
synced 2025-04-24 13:48:50 +08:00

- Move from termui/extra/tabpane.go to termui/tabpane.go - Renamed from Tabpane to TabPane
termui

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.
Examples
Examples can be found in _examples. Run with go run _examples/...
or run all of them consecutively with ./scripts/run_examples.py
.
Documentation
Uses
Related Works
License
This library is under the MIT License
Languages
Go
98.7%
Python
1.2%