1menu_post(3X) menu_post(3X)
2
3
4
6 menu_post - write or erase menus from associated subwindows
7
9 #include <menu.h>
10 int post_menu(MENU *menu);
11 int unpost_menu(MENU *menu);
12
14 The function post_menu displays a menu to its associated subwindow. To
15 trigger physical display of the subwindow, use refresh or some equiva‐
16 lent curses routine (the implicit doupdate triggered by an curses input
17 request will do). post_menu resets the selection status of all items.
18
19 The function unpost_menu erases menu from its associated subwindow.
20
22 These routines return one of the following:
23
24 E_OK The routine succeeded.
25
26 E_SYSTEM_ERROR
27 System error occurred (see errno).
28
29 E_BAD_ARGUMENT
30 Routine detected an incorrect or out-of-range argument.
31
32 E_POSTED
33 The menu has already been posted.
34
35 E_BAD_STATE
36 Routine was called from an initialization or termination function.
37
38 E_NO_ROOM
39 Menu is too large for its window. You should consider to use
40 set_menu_format() to solve the problem.
41
42 E_NOT_POSTED
43 The menu has not been posted.
44
45 E_NOT_CONNECTED
46 No items are connected to the menu.
47
49 curses(3X), menu(3X).
50
52 The header file <menu.h> automatically includes the header file
53 <curses.h>.
54
56 These routines emulate the System V menu library. They were not sup‐
57 ported on Version 7 or BSD versions.
58
60 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
61 Raymond.
62
63
64
65 menu_post(3X)