ctop/main.go
2017-01-03 12:37:09 -05:00

21 lines
215 B
Go

package main
import (
ui "github.com/gizak/termui"
)
func main() {
if err := ui.Init(); err != nil {
panic(err)
}
defer ui.Close()
g := NewGrid()
for {
exit := Display(g)
if exit {
return
}
}
}