]> ncurses.scripts.mit.edu Git - ncurses.git/blob - man/menu_post.3x
ncurses 4.1
[ncurses.git] / man / menu_post.3x
1 '\" t
2 .TH menu_post 3X ""
3 .SH NAME
4 \fBmenu_post\fR - write or erase menus from associated subwindows
5 .SH SYNOPSIS
6 \fB#include <menu.h>\fR
7 .br
8 int post_menu(MENU *menu);
9 .br
10 int unpost_menu(MENU *menu);
11 .br
12 .SH DESCRIPTION
13 The function \fBpost_menu\fR displays a menu to its associated subwindow.  To
14 trigger physical display of the subwindow, use \fBrefresh\fR or some equivalent
15 \fBcurses\fR routine (the implicit \fBdoupdate\fR triggered by an \fBcurses\fR
16 input request will do). \fBpost_menu\fR resets the selection status of all items.
17
18 The function \fBunpost_menu\fR erases menu from its associated subwindow.
19 .SH RETURN VALUE
20 These routines return one of the following:
21 .TP 5
22 \fBE_OK\fR
23 The routine succeeded.
24 .TP 5
25 \fBE_SYSTEM_ERROR\fR
26 System error occurred (see \fBerrno\fR).
27 .TP 5
28 \fBE_BAD_ARGUMENT\fR
29 Routine detected an incorrect or out-of-range argument.
30 .TP 5
31 \fBE_POSTED\fR
32 The menu has already been posted.
33 .TP 5
34 \fBE_BAD_STATE\fR
35 Routine was called from an initialization or termination function.
36 .TP 5
37 \fBE_NO_ROOM\fR
38 Menu is too large for its window.
39 .TP 5
40 \fBE_NOT_POSTED\fR
41 The menu has not been posted.
42 .TP 5
43 \fBE_NOT_CONNECTED\fR
44 No items are connected to the menu.
45 .SH SEE ALSO
46 \fBcurses\fR(3X), \fBmenu\fR(3X).
47 .SH NOTES
48 The header file \fB<menu.h>\fR automatically includes the header file
49 \fB<curses.h>\fR.
50 .SH PORTABILITY
51 These routines emulate the System V menu library.  They were not supported on
52 Version 7 or BSD versions.
53 .SH AUTHORS
54 Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric
55 S. Raymond.
56 .\"#
57 .\"# The following sets edit modes for GNU EMACS
58 .\"# Local Variables:
59 .\"# mode:nroff
60 .\"# fill-column:79
61 .\"# End: