X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=doc%2Fhtml%2Fman%2Fform_driver.3x.html;fp=Ada95%2Fhtml%2Fman%2Fform_driver.3x.html;h=36a27aa81bc531a45453985b2f6eeaf47cc7ce20;hp=c3c2a623a7432c426164e7bcff83efa2037a2912;hb=b1f61d9f3aa244512045a6b02e759825d7049d34;hpb=0eb88fc5281804773e2a0c7a488a4452463535ce diff --git a/Ada95/html/man/form_driver.3x.html b/doc/html/man/form_driver.3x.html similarity index 78% rename from Ada95/html/man/form_driver.3x.html rename to doc/html/man/form_driver.3x.html index c3c2a623..36a27aa8 100644 --- a/Ada95/html/man/form_driver.3x.html +++ b/doc/html/man/form_driver.3x.html @@ -1,19 +1,23 @@
- form_driver - command-processing loop of the form system + + ++
+ form_driver - command-processing loop of the form system
- #include+ #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: @@ -57,6 +61,8 @@ REQ_LEFT_FIELD Move left to a field. + + REQ_RIGHT_FIELD Move right to a field. REQ_UP_FIELD @@ -109,6 +115,8 @@ Move down in the field. + + REQ_NEW_LINE Insert or overlay a new line. REQ_INS_CHAR @@ -161,6 +169,9 @@ Scroll the field forward half a page. REQ_SCR_BHPAGE + Scroll the field backward half a page. + + REQ_SCR_FCHAR Scroll the field forward a character. REQ_SCR_BCHAR @@ -194,50 +205,52 @@ that request is executed. If the second argument is neither printable ASCII nor one - of the above pre-defined form requests, the drive assumes + 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@@ -273,8 +286,14 @@ + +automatically includes the header - files . + The header file <form.h> automatically includes the header + files <curses.h>.