1menu_post(3CURSES)         Curses Library Functions         menu_post(3CURSES)
2
3
4

NAME

6       menu_post,  post_menu,  unpost_menu - write or erase menus from associ‐
7       ated subwindows
8

SYNOPSIS

10       cc [ flag... ] file... -lmenu  -lcurses  [ library... ]
11       #include <menu.h>
12
13       int post_menu(MENU *menu);
14
15
16       int unpost_menu(MENU *menu);
17
18

DESCRIPTION

20       post_menu() writes menu to the subwindow.  The  application  programmer
21       must  use  curses  library routines to display the menu on the physical
22       screen or call update_panels() if the panels library is being used.
23
24
25       unpost_menu() erases menu from its associated subwindow.
26

RETURN VALUES

28       These routines return one of the following:
29
30       E_OK               The routine returned successfully.
31
32
33       E_SYSTEM_ERROR     System error.
34
35
36       E_BAD_ARGUMENT     An incorrect argument was passed to the routine.
37
38
39       E_POSTED           The menu is already posted.
40
41
42       E_BAD_STATE        The routine was called  from  an  initialization  or
43                          termination function.
44
45
46       E_NO_ROOM          The menu does not fit within its subwindow.
47
48
49       E_NOT_POSTED       The menu has not been posted.
50
51
52       E_NOT_CONNECTED    No items are connected to the menu.
53
54

ATTRIBUTES

56       See attributes(5) for descriptions of the following attributes:
57
58
59
60
61       ┌─────────────────────────────┬─────────────────────────────┐
62       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
63       ├─────────────────────────────┼─────────────────────────────┤
64       │MT-Level                     │Unsafe                       │
65       └─────────────────────────────┴─────────────────────────────┘
66

SEE ALSO

68       curses(3CURSES), menus(3CURSES), panels(3CURSES), attributes(5)
69

NOTES

71       The  header  <menu.h>  automatically  includes the headers  <eti.h> and
72       <curses.h>.
73
74
75
76SunOS 5.11                        31 Dec 1996               menu_post(3CURSES)
Impressum