Example #1
0
func error(s string, n uint) {
	//
	pre()
	if n > 0 {
		s += " " + nat.String(n) + " "
	}
	str.Lat1(&s)
	str.Center(&s, NColumns())
	l := NLines() - 1
	Save(l, 0, NColumns(), 1)
	errorbox.Wd(NColumns())
	errorbox.Write(s, l, 0)
	kbd.Wait(false)
	Restore(l, 0, NColumns(), 1)
	post()
}
Example #2
0
func errorPos(s string, n, l, c uint) {
	//
	pre()
	str.Lat1(&s)
	if n > 0 {
		s = s + " " + nat.String(n)
	}
	if l >= NLines() {
		l = NLines() - 1
	}
	w := uint(len(s))
	if c+w >= NColumns() {
		c = NColumns() - w
	}
	Save(l, c, w, 1)
	errorbox.Wd(w)
	errorbox.Write(s, l, c)
	kbd.Wait(false)
	Restore(l, c, w, 1)
	post()
}
Example #3
0
func wait() {
	//
	kbd.Wait(true)
}
Example #4
0
func (R *Imp) Ausgeben(n uint) {
	//
	nat.SetColours(col.Yellow, col.Blue)
	nat.Write(n, scr.NLines()-2, 9)
	kbd.Wait(true)
}