1menu_post(3X)                                                    menu_post(3X)
2
3
4

NAME

6       post_menu,  unpost_menu  - write or erase menus from associated subwin‐
7       dows
8

SYNOPSIS

10       #include <menu.h>
11       int post_menu(MENU *menu);
12       int unpost_menu(MENU *menu);
13

DESCRIPTION

15       The function post_menu displays a menu to its associated subwindow.  To
16       trigger  physical  display  of  the  subwindow, use refresh(3X) or some
17       equivalent curses routine (the implicit doupdate triggered by an curses
18       input  request  will do).  post_menu resets the selection status of all
19       items.
20
21       The function unpost_menu erases menu from its associated subwindow.
22

RETURN VALUE

24       These routines return one of the following:
25
26       E_OK The routine succeeded.
27
28       E_SYSTEM_ERROR
29            System error occurred (see errno).
30
31       E_BAD_ARGUMENT
32            Routine detected an incorrect or out-of-range argument.
33
34       E_POSTED
35            The menu has already been posted.
36
37       E_BAD_STATE
38            Routine was called from an initialization or termination function.
39
40       E_NO_ROOM
41            Menu is too large for  its  window.   You  should  consider  using
42            set_menu_format to solve the problem.
43
44       E_NOT_POSTED
45            The menu has not been posted.
46
47       E_NOT_CONNECTED
48            No items are connected to the menu.
49

SEE ALSO

51       curses(3X), menu(3X).
52

NOTES

54       The  header  file  <menu.h>  automatically  includes  the  header  file
55       <curses.h>.
56

PORTABILITY

58       These routines emulate the System V menu library.  They were  not  sup‐
59       ported on Version 7 or BSD versions.
60

AUTHORS

62       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
63       Raymond.
64
65
66
67                                                                 menu_post(3X)
Impressum