2 .\" Copyright 1989 AT&T
3 .\" Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH MENU_POST 3CURSES "Dec 31, 1996"
9 menu_post, post_menu, unpost_menu \- write or erase menus from associated
14 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lmenu\fR \fB -lcurses \fR [ \fIlibrary\fR... ]
17 \fBint\fR \fBpost_menu\fR(\fBMENU *\fR\fImenu\fR);
22 \fBint\fR \fBunpost_menu\fR(\fBMENU *\fR\fImenu\fR);
28 \fBpost_menu()\fR writes \fImenu\fR to the subwindow. The application
29 programmer must use \fBcurses\fR library routines to display the menu on the
30 physical screen or call \fBupdate_panels()\fR if the \fBpanels\fR library is
34 \fBunpost_menu()\fR erases \fImenu\fR from its associated subwindow.
38 These routines return one of the following:
45 The routine returned successfully.
63 An incorrect argument was passed to the routine.
72 The menu is already posted.
81 The routine was called from an initialization or termination function.
90 The menu does not fit within its subwindow.
99 The menu has not been posted.
105 \fBE_NOT_CONNECTED\fR
108 No items are connected to the menu.
114 See \fBattributes\fR(5) for descriptions of the following attributes:
122 ATTRIBUTE TYPE ATTRIBUTE VALUE
130 \fBcurses\fR(3CURSES), \fBmenus\fR(3CURSES), \fBpanels\fR(3CURSES),
135 The header \fB<menu.h>\fR automatically includes the headers \fB<eti.h>\fR and