4 \fBform_hook\fR - set hooks for automatic invocation by applications
6 \fB#include <form.h>\fR
8 int set_field_init(FORM *form, void (*func)(FORM *));
10 void (*)(FORM *) field_init(const FORM *form);
12 int set_field_term(FORM *form, void (*func)(FORM *));
14 void (*)(FORM *) field_term(const FORM *form);
16 int set_form_init(FORM *form, void (*func)(FORM *));
18 void (*)(FORM *) form_init(const FORM *form);
20 int set_form_term(FORM *form, void (*func)(FORM *));
22 void (*)(FORM *) form_term(const FORM *form);
25 These functions make it possible to set hook functions to be called at various
26 points in the automatic processing of input event codes by \fBform_driver\fR.
28 The function \fBset_field_init\fR sets a hook to be called at form-post time
29 and each time the selected field changes (after the change). \fBfield_init\fR
30 returns the current field init hook, if any (\fBNULL\fR if there is no such
33 The function \fBset_field_term\fR sets a hook to be called at form-unpost time
34 and each time the selected field changes (before the change). \fBfield_term\fR
35 returns the current field term hook, if any (\fBNULL\fR if there is no such
38 The function \fBset_form_init\fR sets a hook to be called at form-post time and
39 just after a page change once it is posted. \fBform_init\fR returns the
40 current form init hook, if any (\fBNULL\fR if there is no such hook).
42 The function \fBset_form_term\fR sets a hook to be called at form-unpost time
43 and just before a page change change once it is posted. \fBform_init\fR
44 returns the current form term hook, if any (\fBNULL\fR if there is no such
47 Routines that return pointers return \fBNULL\fR on error. Other routines
48 return one of the following:
51 The routine succeeded.
54 System error occurred (see \fBerrno\fR).
56 \fBcurses\fR(3X), \fBform\fR(3X).
58 The header file \fB<form.h>\fR automatically includes the header file
61 These routines emulate the System V forms library. They were not supported on
62 Version 7 or BSD versions.
64 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
67 .\"# The following sets edit modes for GNU EMACS