Example #1
0
// Driver issues the actions requested to the form itself. See the
// corresponding REQ_* constants
func (f *Form) Driver(drvract Key) error {
	err := C.form_driver(f.form, C.int(drvract))
	return ncursesError(syscall.Errno(err))
}
Example #2
0
func (form *Form) Drive(req int) bool {
	return isOk(C.form_driver((*C.FORM)(form), C.int(req)))
}
Example #3
0
func (f *Form) Drive(req int) error {
	return geterror(C.form_driver(f.form, C.int(req)))
}