예제 #1
0
// Clears the screen and the underlying virtual screen. This forces the entire
// screen to be rewritten from scratch. This will cause likely cause a
// noticeable flicker because the screen is completely cleared before
// redrawing it. This is probably not what you want. Instead, you should
// probably use the Erase() function. It is the same as called Erase() followed
// by a call to ClearOk().
func (w *Window) Clear() error {
	if C.wclear(w.win) == C.ERR {
		return errors.New("Failed to clear screen")
	}
	return nil
}
예제 #2
0
파일: curses.go 프로젝트: jncorpron/gocurse
func (win *Window) Clear() {
	C.wclear((*C.WINDOW)(win))
}
예제 #3
0
파일: curses.go 프로젝트: zozor/gocurse
func (w *Window) Clear() {
	C.wclear(w.win)
}
예제 #4
0
파일: ncurses.go 프로젝트: Olreich/ncurses
/* Clears the window, erasing any content on it */
func (w *Window) Clear() {
	C.wclear((*C.WINDOW)(w))
}
예제 #5
0
파일: curses.go 프로젝트: repos-go/curses
func (win *Window) Clear() {
	C.wclear(win.cwin)
}
예제 #6
0
func (win *Window) Clear() {
	in()
	defer out()
	C.wclear((*C.WINDOW)(win))
}
예제 #7
0
파일: window.go 프로젝트: zyxar/gocurse
func (win *Window) Clear() error {
	if C.wclear((*C.WINDOW)(win)) == C.ERR {
		return CursesError{"wclear failed"}
	}
	return nil
}