move all termbox logic to terminal.go