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() }
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() }
func wait() { // kbd.Wait(true) }
func (R *Imp) Ausgeben(n uint) { // nat.SetColours(col.Yellow, col.Blue) nat.Write(n, scr.NLines()-2, 9) kbd.Wait(true) }