4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>form_hook</B> - set hooks for automatic invocation by applica-
13 <H2>SYNOPSIS</H2><PRE>
14 <B>#include</B> <B><form.h></B>
15 int set_field_init(FORM *form, void (*func)(FORM *));
16 void (*)(FORM *) field_init(const FORM *form);
17 int set_field_term(FORM *form, void (*func)(FORM *));
18 void (*)(FORM *) field_term(const FORM *form);
19 int set_form_init(FORM *form, void (*func)(FORM *));
20 void (*)(FORM *) form_init(const FORM *form);
21 int set_form_term(FORM *form, void (*func)(FORM *));
22 void (*)(FORM *) form_term(const FORM *form);
26 <H2>DESCRIPTION</H2><PRE>
27 These functions make it possible to set hook functions to
28 be called at various points in the automatic processing of
29 input event codes by <B>form_driver</B>.
31 The function <B>set_field_init</B> sets a hook to be called at
32 form-post time and each time the selected field changes
33 (after the change). <B>field_init</B> returns the current field
34 init hook, if any (<B>NULL</B> if there is no such hook).
36 The function <B>set_field_term</B> sets a hook to be called at
37 form-unpost time and each time the selected field changes
38 (before the change). <B>field_term</B> returns the current field
39 term hook, if any (<B>NULL</B> if there is no such hook).
41 The function <B>set_form_init</B> sets a hook to be called at
42 form-post time and just after a page change once it is
43 posted. <B>form_init</B> returns the current form init hook, if
44 any (<B>NULL</B> if there is no such hook).
46 The function <B>set_form_term</B> sets a hook to be called at
47 form-unpost time and just before a page change once it is
48 posted. <B>form_init</B> returns the current form term hook, if
49 any (<B>NULL</B> if there is no such hook).
53 <H2>RETURN VALUE</H2><PRE>
54 Routines that return pointers return <B>NULL</B> on error. Other
55 routines return one of the following:
57 <B>E_OK</B> The routine succeeded.
60 System error occurred (see <B>errno</B>).
64 <H2>SEE ALSO</H2><PRE>
65 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="form.3x.html">form(3x)</A></B>.
70 The header file <B><form.h></B> automatically includes the header
71 file <B><curses.h></B>.
75 <H2>PORTABILITY</H2><PRE>
76 These routines emulate the System V forms library. They
77 were not supported on Version 7 or BSD versions.
82 Juergen Pfeifer. Manual pages and adaptation for new
83 curses by Eric S. Raymond.
132 Man(1) output converted with
133 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>