Beispiel #1
0
// Clear from the current cursor position, moving to the right, to the end
// of the line
func (w *Window) ClearToEOL() error {
	if C.wclrtoeol(w.win) == C.ERR {
		return errors.New("Failed to clear to end of line")
	}
	return nil
}
Beispiel #2
0
func (win *Window) ClearToEOL() {
	C.wclrtoeol((*C.WINDOW)(win))
}
Beispiel #3
0
func (win *Window) Clrtoeol() {
	C.wclrtoeol((*C.WINDOW)(win))
}
Beispiel #4
0
func (w *Window) MoveAndClear(y int, x int) {
	w.Move(y, x)
	C.wclrtoeol(w.win)
}
Beispiel #5
0
func (w *Window) Clrtoeol() {
	C.wclrtoeol(w.win)
}
Beispiel #6
0
// Erases content from cursor to end of line inclusive.
func (win *Window) Clrtoeol() {
	C.wclrtoeol(win.cwin)
}
Beispiel #7
0
func (w *CursesWindow) MoveAndClear(y int, x int) {
	w.Move(y, x)
	C.wclrtoeol(w.impl)
}
Beispiel #8
0
func (win *Window) Clrtoeol() {
	in()
	defer out()
	C.wclrtoeol((*C.WINDOW)(win))
}
Beispiel #9
0
func (win *Window) Clrtoeol() error {
	if C.wclrtoeol((*C.WINDOW)(win)) == C.ERR {
		return CursesError{"wclrtoeol failed"}
	}
	return nil
}