Пример #1
0
// Touchline behaves like Touch but only effects count number of lines,
// beginning at start
func (w *Window) TouchLine(start, count int) error {
	if C.touchline(w.win, C.int(start), C.int(count)) == C.ERR {
		return errors.New("Error in call to TouchLine")
	}
	return nil
}
Пример #2
0
func (win *Window) Touchline(y, x int) error {
	if C.touchline((*C.WINDOW)(win), C.int(y), C.int(x)) == C.ERR {
		return CursesError{"touchline failed"}
	}
	return nil
}