Example #1
0
func (w *Window) MoveChgat(x, y, n, attr, color int) error {
	if C.mvwchgat(w.win, C.int(y), C.int(x), C.int(n), C.attr_t(attr), C.short(color), nil) == ERR {
		return Error
	}
	return nil
}
Example #2
0
func (win *Window) Mvchgat(y, x, n, attrs int, color int16) error {
	if C.mvwchgat((*C.WINDOW)(win), C.int(y), C.int(x), C.int(n), C.attr_t(attrs), C.short(color), nil) == C.ERR {
		return CursesError{"mvwchgat failed"}
	}
	return nil
}