]> ncurses.scripts.mit.edu Git - ncurses.git/blob - doc/html/man/menu_post.3x.html
ncurses 5.2
[ncurses.git] / doc / html / man / menu_post.3x.html
1 <HTML>
2 <BODY>
3 <PRE>
4 <!-- Manpage converted by man2html 3.0.1 -->
5
6 </PRE>
7 <H2>NAME</H2><PRE>
8        <B>menu_post</B>  -  write or erase menus from associated subwin-
9        dows
10
11
12 </PRE>
13 <H2>SYNOPSIS</H2><PRE>
14        <B>#include</B> <B>&lt;menu.h&gt;</B>
15        int post_menu(MENU *menu);
16        int unpost_menu(MENU *menu);
17
18
19 </PRE>
20 <H2>DESCRIPTION</H2><PRE>
21        The function <B>post_menu</B> displays a menu to  its  associated
22        subwindow.   To trigger physical display of the subwindow,
23        use  <B>refresh</B>  or  some  equivalent  <B>curses</B>  routine   (the
24        implicit  <B>doupdate</B>  triggered  by  an <B>curses</B> input request
25        will do). <B>post_menu</B> resets the  selection  status  of  all
26        items.
27
28        The  function  <B>unpost_menu</B> erases menu from its associated
29        subwindow.
30
31
32 </PRE>
33 <H2>RETURN VALUE</H2><PRE>
34        These routines return one of the following:
35
36        <B>E_OK</B> The routine succeeded.
37
38        <B>E_SYSTEM_ERROR</B>
39             System error occurred (see <B>errno</B>).
40
41        <B>E_BAD_ARGUMENT</B>
42             Routine detected an incorrect or  out-of-range  argu-
43             ment.
44
45        <B>E_POSTED</B>
46             The menu has already been posted.
47
48        <B>E_BAD_STATE</B>
49             Routine was called from an initialization or termina-
50             tion function.
51
52        <B>E_NO_ROOM</B>
53             Menu is too large for its window. You should consider
54             to use <B>set_menu_format()</B> to solve the problem.
55
56        <B>E_NOT_POSTED</B>
57             The menu has not been posted.
58
59        <B>E_NOT_CONNECTED</B>
60             No items are connected to the menu.
61
62
63 </PRE>
64 <H2>SEE ALSO</H2><PRE>
65        <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="menu.3x.html">menu(3x)</A></B>.
66
67
68 </PRE>
69 <H2>NOTES</H2><PRE>
70        The header file <B>&lt;menu.h&gt;</B> automatically includes the header
71        file <B>&lt;curses.h&gt;</B>.
72
73
74 </PRE>
75 <H2>PORTABILITY</H2><PRE>
76        These routines emulate the System V  menu  library.   They
77        were not supported on Version 7 or BSD versions.
78
79
80 </PRE>
81 <H2>AUTHORS</H2><PRE>
82        Juergen  Pfeifer.   Manual  pages  and  adaptation for new
83        curses by Eric S. Raymond.
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129 </PRE>
130 <HR>
131 <ADDRESS>
132 Man(1) output converted with
133 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
134 </ADDRESS>
135 </BODY>
136 </HTML>