Exemple #1
0
func (w *Window) Chgat(n, attr, color int) error {
	if C.wchgat(w.win, C.int(n), C.attr_t(attr), C.short(color), nil) == ERR {
		return Error
	}
	return nil
}
Exemple #2
0
func (win *Window) Chgat(n, attrs int, color int16) error {
	if C.wchgat((*C.WINDOW)(win), C.int(n), C.attr_t(attrs), C.short(color), nil) == C.ERR {
		return CursesError{"wchgat failed"}
	}
	return nil
}