1menu_hook(3X)                                                    menu_hook(3X)
2
3
4

NAME

6       menu_hook - set hooks for automatic invocation by applications
7

SYNOPSIS

9       #include <menu.h>
10       int set_item_init(MENU *menu, Menu_Hook func);
11       Menu_Hook item_init(const MENU *menu);
12       int set_item_term(MENU *menu, Menu_Hook func);
13       Menu_Hook item_term(const MENU *menu);
14       int set_menu_init(MENU *menu, Menu_Hook func);
15       Menu_Hook menu_init(const MENU *menu);
16       int set_menu_term(MENU *menu, Menu_Hook func);
17       Menu_Hook menu_term(const MENU *menu);
18

DESCRIPTION

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       menu_driver.
23
24       The  function  set_item_init sets a hook to be called at menu-post time
25       and each time the selected item changes (after the change).   item_init
26       returns  the  current  item init hook, if any (NULL if there is no such
27       hook).
28
29       The function set_item_term sets a hook to be called at menu-unpost time
30       and each time the selected item changes (before the change).  item_term
31       returns the current item term hook, if any (NULL if there  is  no  such
32       hook).
33
34       The  function  set_menu_init sets a hook to be called at menu-post time
35       and just after the top row on the  menu  changes  once  it  is  posted.
36       menu_init  returns the current menu init hook, if any (NULL if there is
37       no such hook).
38
39       The function set_menu_term sets a hook to be called at menu-unpost time
40       and  just  before  the  top  row on the menu changes once it is posted.
41       menu_term returns the current menu term hook, if any (NULL if there  is
42       no such hook).
43

RETURN VALUE

45       Routines  that  return  pointers  return NULL on error.  Other routines
46       return one of the following:
47
48       E_OK The routine succeeded.
49
50       E_SYSTEM_ERROR
51            System error occurred (see errno(3)).
52

SEE ALSO

54       curses(3X), menu(3X).
55

NOTES

57       The  header  file  <menu.h>  automatically  includes  the  header  file
58       <curses.h>.
59

PORTABILITY

61       These  routines  emulate the System V menu library.  They were not sup‐
62       ported on Version 7 or BSD versions.
63

AUTHORS

65       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
66       Raymond.
67
68
69
70                                                                 menu_hook(3X)
Impressum