man.bsd.lv manual page server

Manual Page Search Parameters

MENU_HOOK(3) Library Functions Manual MENU_HOOK(3)

item_init, item_term, menu_init, menu_term, set_item_init, set_item_term, set_menu_init, set_menu_termget or set handler functions for menu post/unpost or item change

library “libmenu”

#include <menu.h>

void (*hook)()
item_init(MENU *menu);

void (*hook)()
item_term(MENU *menu);

void (*hook)()
menu_init(MENU *menu);

void (*hook)()
menu_term(MENU *menu);

int
set_item_init(MENU *menu, void (*hook)()));

int
set_item_term(MENU *menu, void (*hook)()));

int
set_menu_init(MENU *menu, void (*hook)()));

int
set_menu_term(MENU *menu, void (*hook)()));

The () function returns a pointer to the function that will be called whenever the menu is posted and also just after the current item changes. This is set by the () call. The () function returns a pointer to the function that will be called before the menu is unposted and just before the current item changes, this pointer is set by the () call. The () functions returns a pointer to the function that will be called just before the menu is posted to the screen. This pointer is set by the () function call. The () function returns a pointer to the function that will be called just after the menu has been unposted, this pointer is set by the () function.

curses(3), menus(3)

The header <menu.h> automatically includes both <curses.h> and <eti.h>.

September 10, 1999 NetBSD-9.2