예제 #1
0
파일: form.go 프로젝트: trotha01/goncurses
// SetForeground character and attributes (colours, etc)
func (f *Field) SetForeground(ch Char) error {
	err := C.set_field_fore((*C.FIELD)(f), C.chtype(ch))
	return ncursesError(syscall.Errno(err))
}
예제 #2
0
파일: forms.go 프로젝트: mpatraw/gocurse
func (field *Field) SetFore(fore Chtype) bool {
	return isOk(C.set_field_fore((*C.FIELD)(field), (C.chtype)(fore)))
}
예제 #3
0
파일: form.go 프로젝트: zozor/gocurse
func (f *Field) SetFore(fore int) error {
	return geterror(C.set_field_fore(f.field, C.chtype(fore)))
}