Curses Library Functions menupost(3CURSES)
NAME
menupost, postmenu, unpostmenu - write or erase menus
from associated subwindows
SYNOPSIS
cc [ flag... ] file... -lmenu -lcurses [ library... ]
#include
int postmenu(MENU *menu);
int unpostmenu(MENU *menu);
DESCRIPTION
postmenu() writes menu to the subwindow. The application
programmer must use curses library routines to display the
menu on the physical screen or call updatepanels() if the
panels library is being used.
unpostmenu() erases menu from its associated subwindow.
RETURN VALUES
These routines return one of the following:
EOK The routine returned successfully.
ESYSTEMEROR System error.
EBADARGUMENT An incorrect argument was passed to the
routine.
EPOSTED The menu is already posted.
EBADSTATE The routine was called from an initiali-
zation or termination function.
ENOROM The menu does not fit within its subwin-
dow.
ENOTPOSTED The menu has not been posted.
ENOTCONECTED No items are connected to the menu.
SunOS 5.11 Last change: 31 Dec 1996 1
Curses Library Functions menupost(3CURSES)
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
MT-Level Unsafe
SEE ALSO
curses(3CURSES), menus(3CURSES), panels(3CURSES), attri-
butes(5)
NOTES
The header automatically includes the headers
and .
SunOS 5.11 Last change: 31 Dec 1996 2
|