ctop/main.go

20 lines
214 B
Go
Raw Normal View History

package main
import (
ui "github.com/gizak/termui"
)
func main() {
if err := ui.Init(); err != nil {
panic(err)
}
defer ui.Close()
2016-12-30 21:14:07 +00:00
g := NewGrid()
for {
exit := Display(g)
if exit {
return
}
}
}