Пример #1
0
func (win *Window) Erase() {
	C.werase((*C.WINDOW)(win))
}
Пример #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)
}
Пример #3
0
func (win *Window) Erase() {
	C.werase(win.cwin)
}
Пример #4
0
func (w *CursesWindow) Erase() {
	C.werase(w.impl)
}
Пример #5
0
func (win *Window) Erase() {
	in()
	defer out()
	C.werase((*C.WINDOW)(win))
}
Пример #6
0
func (win *Window) Erase() error {
	if C.werase((*C.WINDOW)(win)) == C.ERR {
		return CursesError{"werase failed"}
	}
	return nil
}