Example #1
0
// SetMax sets the maximum size of a field
func (f *Field) SetMax(max int) error {
	err := C.set_max_field((*C.FIELD)(f), C.int(max))
	return ncursesError(syscall.Errno(err))
}
Example #2
0
func (field *Field) SetMax(max int) bool {
	return isOk(C.set_max_field((*C.FIELD)(field), C.int(max)))
}
Example #3
0
func (f *Field) SetMax(max int) error {
	return geterror(C.set_max_field(f.field, C.int(max)))

}