// tgotop project main.go
package main

import (
	//	proc "github.com/cespare/goproc"
	ui "github.com/gizak/termui"
	tm "github.com/nsf/termbox-go"
	// "time"
)

func main() {
	err := ui.Init()
	if err != nil {
		panic(err)
	}
	defer ui.Close()

	//getting ready to close stuff on command
	evt := make(chan tm.Event)
	go func() {
		for {
			evt <- tm.PollEvent()
		}
	}()

	for {
		select {
		case e := <-evt:
			if e.Type == tm.EventKey && e.Ch == 'q' {
				return
			}
			if e.Type == tm.EventResize {
				ui.Body.Width = ui.TermWidth()
				ui.Body.Align()
			}
		default:
			//	draw(i)
		}
	}
}

// tgotop project main.go
package main

import (
	ui "github.com/gizak/termui"
	tm "github.com/nsf/termbox-go"
	// "time"
)

func main() {
	err := ui.Init()
	if err != nil {
		panic(err)
	}
	defer ui.Close()

	qMess := ui.NewPar(":PRESS q TO QUIT")
	qMess.Height = 3

	//getting ready to close stuff on command
	evt := make(chan tm.Event)
	go func() {
		for {
			evt <- tm.PollEvent()
		}
	}()

	draw := func() {
		ui.Render(qMess)
	}

	ui.Body.AddRows(
		ui.NewRow(ui.NewCol(12, 0, qMess)))

	ui.Body.Align()

	for {
		select {
		case e := <-evt:
			if e.Type == tm.EventKey && e.Ch == 'q' {
				return
			}
			if e.Type == tm.EventResize {
				ui.Body.Width = ui.TermWidth()
				ui.Body.Align()
			}
		default:
			draw()
		}
	}
}

Exit message: for now, high on the top, will change.
Exit message: for now, high on the top, will change.

Next step: memory status
