X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fform_driver.3x.html;h=061519f5af7150c24a4a83bc4c922af1aae06fa4;hp=36a27aa81bc531a45453985b2f6eeaf47cc7ce20;hb=refs%2Ftags%2Fv5.3;hpb=c633e5103a29a38532cf1925257b91cea33fd090 diff --git a/doc/html/man/form_driver.3x.html b/doc/html/man/form_driver.3x.html index 36a27aa8..061519f5 100644 --- a/doc/html/man/form_driver.3x.html +++ b/doc/html/man/form_driver.3x.html @@ -1,23 +1,61 @@ + + +
+- form_driver - command-processing loop of the form system + form_driver - command-processing loop of the form system
- #include <form.h> + #include <form.h> int form_driver(FORM *form, int c);
Once a form has been posted (displayed), you should funnel - input events to it through form_driver. This routine has + input events to it through form_driver. This routine has two major input cases; either the input is a form naviga- tion request or it's a printable ASCII character. The form driver requests are as follows: @@ -207,50 +245,50 @@ If the second argument is neither printable ASCII nor one of the above pre-defined form requests, the driver assumes it is an application-specific command and returns - E_UNKNOWN_COMMAND. Application-defined commands should be - defined relative to MAX_COMMAND, the maximum value of + E_UNKNOWN_COMMAND. Application-defined commands should be + defined relative to MAX_COMMAND, the maximum value of these pre-defined requests.
- form_driver return one of the following error codes: + form_driver return one of the following error codes: - E_OK The routine succeeded. + E_OK The routine succeeded. - E_SYSTEM_ERROR - System error occurred (see errno). + E_SYSTEM_ERROR + System error occurred (see errno). - E_BAD_ARGUMENT + E_BAD_ARGUMENT Routine detected an incorrect or out-of-range argu- ment. - E_BAD_STATE + E_BAD_STATE Routine was called from an initialization or termination function. - E_NOT_POSTED + E_NOT_POSTED The form has not been posted. - E_UNKNOWN_COMMAND + E_UNKNOWN_COMMAND The form driver code saw an unknown request code. - E_INVALID_FIELD + E_INVALID_FIELD Contents of field is invalid. - E_REQUEST_DENIED + E_REQUEST_DENIED The form driver could not process the request.
- curses(3x), form(3x). + curses(3x), form(3x).
- The header file <form.h> automatically includes the header - files <curses.h>. + The header file <form.h> automatically includes the header + files <curses.h>.