示例#1
0
文件: curses.go 项目: zozor/gocurse
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
}
示例#2
0
文件: window.go 项目: zyxar/gocurse
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
}