Example #1
0
func (win *Window) Erase() {
	C.werase((*C.WINDOW)(win))
}
Example #2
0
// Erase the contents of the window, clearing it. This function allows the
// underlying structures to be updated efficiently and thereby provide smooth
// updates to the terminal when frequently clearing and re-writing the window
// or screen.
func (w *Window) Erase() {
	C.werase(w.win)
}
Example #3
0
func (win *Window) Erase() {
	C.werase(win.cwin)
}
Example #4
0
func (w *CursesWindow) Erase() {
	C.werase(w.impl)
}
Example #5
0
func (win *Window) Erase() {
	in()
	defer out()
	C.werase((*C.WINDOW)(win))
}
Example #6
0
func (win *Window) Erase() error {
	if C.werase((*C.WINDOW)(win)) == C.ERR {
		return CursesError{"werase failed"}
	}
	return nil
}