Example #1
0
// ClearOk clears the window completely prior to redrawing it. If called
// on stdscr then the whole screen is redrawn no matter which window has
// Refresh() called on it. Defaults to False.
func (w *Window) ClearOk(ok bool) {
	C.clearok(w.win, C.bool(ok))
}
Example #2
0
func (win *Window) Clearok(b bool) error {
	if C.clearok((*C.WINDOW)(win), bool2cint(b)) == C.ERR {
		return CursesError{"clearok failed"}
	}
	return nil
}