1
0
mirror of https://github.com/gizak/termui.git synced 2025-04-27 13:48:51 +08:00
termui/block_main.go

20 lines
307 B
Go
Raw Normal View History

2015-05-02 23:35:06 -04:00
// +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
2015-05-09 19:29:22 -04:00
b.BorderLabel = "[HELLO](fg-red,bg-white) [WORLD](fg-blue,bg-green)"
2015-05-02 23:35:06 -04:00
termui.Render(b)
<-termui.EventCh()
termui.Close()
}