mirror of
https://github.com/gizak/termui.git
synced 2025-04-27 13:48:51 +08:00
20 lines
268 B
Go
20 lines
268 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 WORLD"
|
||
|
|
||
|
termui.Render(b)
|
||
|
<-termui.EventCh()
|
||
|
termui.Close()
|
||
|
}
|