DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
ETI menus

Menu driver processing

The menu_driver is the workhorse of the menu system. Once the menu is posted, the menu_driver handles all interaction with the end-user. It responds to

SYNOPSIS

   int menu_driver (menu, c)
   MENU * menu;
   int c;
Your application program passes a character to the menu driver for processing and evaluates the results.

To enable your application program to fetch the character for the menu driver, you write a routine that defines the input key virtualization. This is the correspondence between specific input keys, control characters, or escape sequences on the one hand and menu driver requests on the other. The virtualization routine returns a specific menu request or application command that the menu driver can process. Upon return from the menu driver, your application can check if the input was processed appropriately. If not, your application specifies the action to be taken. These actions may include terminating interaction with the menu, responding to help requests, generating an error message, and so forth.


Next topic: Defining the key virtualization correspondence
Previous topic: Sample routines displaying and erasing menus

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004