Example #1
0
func Headline(s string) {
	ansiterm.SavePosn()
	ansiterm.MoveToRC(1, 1)
	ansiterm.ClearLine()
	fmt.Printf("%s", s)
	ansiterm.RestorePosn()
}
Example #2
0
func StatusUpdate(s string) {
	const (
		row      = 12
		col      = 4
		fieldlen = 10
	)
	ansiterm.SavePosn()
	ansiterm.MoveToRC(row, col)
	ansiterm.Erase(fieldlen)
	fmt.Printf("%s", s)
	ansiterm.RestorePosn()
}