ctop/main.go

26 lines
349 B
Go
Raw Normal View History

package main
import (
"github.com/bcicen/ctop/logging"
ui "github.com/gizak/termui"
)
var log = logging.New(GlobalConfig["loggingEnabled"])
func main() {
if err := ui.Init(); err != nil {
panic(err)
}
defer ui.Close()
2017-01-03 17:37:09 +00:00
2016-12-30 21:14:07 +00:00
g := NewGrid()
for {
exit := Display(g)
if exit {
log.Notice("shutting down")
log.Exit()
return
}
}
}