cc [flag . . .] file -lmenu -lcurses [library . . .]#include <menu.h>
The menus package gives the applications programmer a terminal-independent method of creating and customizing menus for user interaction. The menus package includes: item routines, which are used to create and customize menu items; and menu routines, which are used to create and customize menus, assign pre- and post-processing routines, and display and interact with menus.
E_OK | - | The routine returned successfully. |
E_SYSTEM_ERROR | - | System error. |
E_BAD_ARGUMENT | - | An incorrect argument was passed to the routine. |
E_POSTED | - | The menu is already posted. |
E_CONNECTED | - | One or more items are already connected |
to another menu. | ||
E_BAD_STATE | - | The routine was called from an initialization or termination function. |
E_NO_ROOM | - | The menu does not fit within its subwindow. |
E_NOT_POSTED | - | The menu has not been posted. |
E_UNKNOWN_COMMAND | - | An unknown request was passed to the menu driver. |
E_NO_MATCH | - | The character failed to match. |
E_NOT_SELECTABLE | - | The item cannot be selected. |
E_NOT_CONNECTED | - | No items are connected to the menu. |
E_REQUEST_DENIED | - | The menu driver could not process the request. |