|
|
cc [flag . . .] file -lmenu -locurses [library . . .]#include <menu.h>
int set_item_init(MENU menu, void (*func)(MENU )); void ()(MENU ) item_init(MENU menu); int set_item_term(MENU menu, void (*func)(MENU )); void ()(MENU ) item_term(MENU menu); int set_menu_init(MENU menu, void (*func)(MENU )); void ()(MENU ) menu_init(MENU menu); int set_menu_term(MENU menu, void (*func)(MENU )); void ()(MENU ) menu_term(MENU menu);
set_item_term assigns an application-defined function to be called when the menu is unposted and just before the current item changes. item_term returns a pointer to the termination function, if any, called when the menu is unposted and just before the current item changes.
set_menu_init assigns an application-defined function to be called when the menu is posted and just after the top row changes on a posted menu. menu_init returns a pointer to the menu initialization routine, if any, called when the menu is posted and just after the top row changes on a posted menu.
set_menu_term assigns an application-defined function to be called when the menu is unposted and just before the top row changes on a posted menu. menu_term returns a pointer to the menu termination routine, if any, called when the menu is unposted and just before the top row changes on a posted menu.
E_OK | - | The routine returned successfully. |
E_SYSTEM_ERROR | - | System error. |
The header file menu.h automatically includes the header files eti.h and ocurses.h.