4 \fBmenu_hook\fR - set hooks for automatic invocation by applications
6 \fB#include <menu.h>\fR
8 int set_item_init(MENU *menu, void (*func)(MENU *));
10 void (*)(MENU *) item_init(const MENU *menu);
12 int set_item_term(MENU *menu, void (*func)(MENU *));
14 void (*)(MENU *) item_term(const MENU *menu);
16 int set_menu_init(MENU *menu, void (*func)(MENU *));
18 void (*)(MENU *) menu_init(const MENU *menu);
20 int set_menu_term(MENU *menu, void (*func)(MENU *));
22 void (*)(MENU *) menu_term(const MENU *menu);
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 \fBmenu_driver\fR.
28 The function \fBset_item_init\fR sets a hook to be called at menu-post time and
29 each time the selected item changes (after the change). \fBitem_init\fR
30 returns the current item init hook, if any (\fBNULL\fR if there is no such
33 The function \fBset_item_term\fR sets a hook to be called at menu-unpost time
34 and each time the selected item changes (before the change). \fBitem_term\fR
35 returns the current item term hook, if any (\fBNULL\fR if there is no such
38 The function \fBset_menu_init\fR sets a hook to be called at menu-post time and
39 just after the top row on the menu changes once it is posted. \fBmenu_init\fR
40 returns the current menu init hook, if any (\fBNULL\fR if there is no such
43 The function \fBset_menu_term\fR sets a hook to be called at menu-unpost time
44 and just before the top row on the menu changes once it is posted.
45 \fBmenu_term\fR returns the current menu term hook, if any (\fBNULL\fR if there
48 Routines that return pointers return \fBNULL\fR on error. Other routines
49 return one of the following:
52 The routine succeeded.
55 System error occurred (see \fBerrno\fR).
57 \fBcurses\fR(3X), \fBmenu\fR(3X).
59 The header file \fB<menu.h>\fR automatically includes the header file
62 These routines emulate the System V menu library. They were not supported on
63 Version 7 or BSD versions.
65 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
68 .\"# The following sets edit modes for GNU EMACS