| 1 | '\" t | 
|---|
| 2 | .\"*************************************************************************** | 
|---|
| 3 | .\" Copyright (c) 1998 Free Software Foundation, Inc.                        * | 
|---|
| 4 | .\"                                                                          * | 
|---|
| 5 | .\" Permission is hereby granted, free of charge, to any person obtaining a  * | 
|---|
| 6 | .\" copy of this software and associated documentation files (the            * | 
|---|
| 7 | .\" "Software"), to deal in the Software without restriction, including      * | 
|---|
| 8 | .\" without limitation the rights to use, copy, modify, merge, publish,      * | 
|---|
| 9 | .\" distribute, distribute with modifications, sublicense, and/or sell       * | 
|---|
| 10 | .\" copies of the Software, and to permit persons to whom the Software is    * | 
|---|
| 11 | .\" furnished to do so, subject to the following conditions:                 * | 
|---|
| 12 | .\"                                                                          * | 
|---|
| 13 | .\" The above copyright notice and this permission notice shall be included  * | 
|---|
| 14 | .\" in all copies or substantial portions of the Software.                   * | 
|---|
| 15 | .\"                                                                          * | 
|---|
| 16 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS  * | 
|---|
| 17 | .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF               * | 
|---|
| 18 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.   * | 
|---|
| 19 | .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,   * | 
|---|
| 20 | .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR    * | 
|---|
| 21 | .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR    * | 
|---|
| 22 | .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE.                               * | 
|---|
| 23 | .\"                                                                          * | 
|---|
| 24 | .\" Except as contained in this notice, the name(s) of the above copyright   * | 
|---|
| 25 | .\" holders shall not be used in advertising or otherwise to promote the     * | 
|---|
| 26 | .\" sale, use or other dealings in this Software without prior written       * | 
|---|
| 27 | .\" authorization.                                                           * | 
|---|
| 28 | .\"*************************************************************************** | 
|---|
| 29 | .\" | 
|---|
| 30 | .\" $Id: menu_post.3x,v 1.7 1998/11/29 01:10:33 Rick.Ohnemus Exp $ | 
|---|
| 31 | .TH menu_post 3X "" | 
|---|
| 32 | .SH NAME | 
|---|
| 33 | \fBmenu_post\fR - write or erase menus from associated subwindows | 
|---|
| 34 | .SH SYNOPSIS | 
|---|
| 35 | \fB#include <menu.h>\fR | 
|---|
| 36 | .br | 
|---|
| 37 | int post_menu(MENU *menu); | 
|---|
| 38 | .br | 
|---|
| 39 | int unpost_menu(MENU *menu); | 
|---|
| 40 | .br | 
|---|
| 41 | .SH DESCRIPTION | 
|---|
| 42 | The function \fBpost_menu\fR displays a menu to its associated subwindow.  To | 
|---|
| 43 | trigger physical display of the subwindow, use \fBrefresh\fR or some equivalent | 
|---|
| 44 | \fBcurses\fR routine (the implicit \fBdoupdate\fR triggered by an \fBcurses\fR | 
|---|
| 45 | input request will do). \fBpost_menu\fR resets the selection status of all items. | 
|---|
| 46 |  | 
|---|
| 47 | The function \fBunpost_menu\fR erases menu from its associated subwindow. | 
|---|
| 48 | .SH RETURN VALUE | 
|---|
| 49 | These routines return one of the following: | 
|---|
| 50 | .TP 5 | 
|---|
| 51 | \fBE_OK\fR | 
|---|
| 52 | The routine succeeded. | 
|---|
| 53 | .TP 5 | 
|---|
| 54 | \fBE_SYSTEM_ERROR\fR | 
|---|
| 55 | System error occurred (see \fBerrno\fR). | 
|---|
| 56 | .TP 5 | 
|---|
| 57 | \fBE_BAD_ARGUMENT\fR | 
|---|
| 58 | Routine detected an incorrect or out-of-range argument. | 
|---|
| 59 | .TP 5 | 
|---|
| 60 | \fBE_POSTED\fR | 
|---|
| 61 | The menu has already been posted. | 
|---|
| 62 | .TP 5 | 
|---|
| 63 | \fBE_BAD_STATE\fR | 
|---|
| 64 | Routine was called from an initialization or termination function. | 
|---|
| 65 | .TP 5 | 
|---|
| 66 | \fBE_NO_ROOM\fR | 
|---|
| 67 | Menu is too large for its window. You should consider to use | 
|---|
| 68 | \fBset_menu_format()\fR to solve the problem. | 
|---|
| 69 | .TP 5 | 
|---|
| 70 | \fBE_NOT_POSTED\fR | 
|---|
| 71 | The menu has not been posted. | 
|---|
| 72 | .TP 5 | 
|---|
| 73 | \fBE_NOT_CONNECTED\fR | 
|---|
| 74 | No items are connected to the menu. | 
|---|
| 75 | .SH SEE ALSO | 
|---|
| 76 | \fBcurses\fR(3X), \fBmenu\fR(3X). | 
|---|
| 77 | .SH NOTES | 
|---|
| 78 | The header file \fB<menu.h>\fR automatically includes the header file | 
|---|
| 79 | \fB<curses.h>\fR. | 
|---|
| 80 | .SH PORTABILITY | 
|---|
| 81 | These routines emulate the System V menu library.  They were not supported on | 
|---|
| 82 | Version 7 or BSD versions. | 
|---|
| 83 | .SH AUTHORS | 
|---|
| 84 | Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric | 
|---|
| 85 | S. Raymond. | 
|---|
| 86 | .\"# | 
|---|
| 87 | .\"# The following sets edit modes for GNU EMACS | 
|---|
| 88 | .\"# Local Variables: | 
|---|
| 89 | .\"# mode:nroff | 
|---|
| 90 | .\"# fill-column:79 | 
|---|
| 91 | .\"# End: | 
|---|