1form_hook(3X) form_hook(3X)
2
3
4
6 form_hook - set hooks for automatic invocation by applications
7
9 #include <form.h>
10 int set_field_init(FORM *form, Form_Hook func);
11 Form_Hook field_init(const FORM *form);
12 int set_field_term(FORM *form, Form_Hook func);
13 Form_Hook field_term(const FORM *form);
14 int set_form_init(FORM *form, Form_Hook func);
15 Form_Hook form_init(const FORM *form);
16 int set_form_term(FORM *form, Form_Hook func);
17 Form_Hook form_term(const FORM *form);
18
20 These functions make it possible to set hook functions to be called at
21 various points in the automatic processing of input event codes by
22 form_driver.
23
24 The function set_field_init sets a hook to be called at form-post time
25 and each time the selected field changes (after the change).
26 field_init returns the current field init hook, if any (NULL if there
27 is no such hook).
28
29 The function set_field_term sets a hook to be called at form-unpost
30 time and each time the selected field changes (before the change).
31 field_term returns the current field term hook, if any (NULL if there
32 is no such hook).
33
34 The function set_form_init sets a hook to be called at form-post time
35 and just after a page change once it is posted. form_init returns the
36 current form init hook, if any (NULL if there is no such hook).
37
38 The function set_form_term sets a hook to be called at form-unpost time
39 and just before a page change once it is posted. form_init returns the
40 current form term hook, if any (NULL if there is no such hook).
41
43 Routines that return pointers return NULL on error. Other routines
44 return one of the following:
45
46 E_OK The routine succeeded.
47
48 E_SYSTEM_ERROR
49 System error occurred (see errno).
50
52 curses(3X), form(3X).
53
55 The header file <form.h> automatically includes the header file
56 <curses.h>.
57
59 These routines emulate the System V forms library. They were not sup‐
60 ported on Version 7 or BSD versions.
61
63 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
64 Raymond.
65
66
67
68 form_hook(3X)