package main import "github.com/nsf/termbox-go" func drawStringAtPoint(str string, x int, y int, fg termbox.Attribute, bg termbox.Attribute) int { x_pos := x for _, runeValue := range str { termbox.SetCell(x_pos, y, runeValue, fg, bg) x_pos++ } return x_pos - x }