boltbrowser/util.go
2015-04-24 17:53:33 -05:00

13 lines
274 B
Go

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
}