termui/block_main.go
2015-05-09 19:29:22 -04:00

20 lines
307 B
Go

// +build ignore
package main
import "github.com/gizak/termui"
func main() {
termui.Init()
termui.UseTheme("helloworld")
b := termui.NewBlock()
b.Width = 20
b.Height = 30
b.BorderLabel = "[HELLO](fg-red,bg-white) [WORLD](fg-blue,bg-green)"
termui.Render(b)
<-termui.EventCh()
termui.Close()
}