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
12       int post_menu(MENU *menu);
13       int unpost_menu(MENU *menu);
14

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

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

NOTES

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

PORTABILITY

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

AUTHORS

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