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

Form driver processing

Like the function menu_driver for the menu subsystem, function form_driver is the workhorse of the form system. Once the form is posted, the form driver handles all interaction with your end-user. The form driver responds to

Your application passes a character to the form driver for processing and evaluates the results.

SYNOPSIS

   int form_driver (form, c)
   FORM * form;
   int c;

As with menu processing, to enable the form driver to process your end-users' requests, you must write an input key virtualization routine. This routine defines a correspondence between input keys, control characters, and escape sequences on the one hand and ETI form requests on the other. The routine returns a specific form request or application command that the form driver can process. Upon return from the form driver, your application can check if the input was processed appropriately. If not, it can specify actions to be taken. These may include terminating interaction with the form, responding to help requests, generating an error message, and so on.


Next topic: Defining the virtual key mapping
Previous topic: Posting and unposting a form

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