2 .\" Copyright 1989 AT&T
3 .\" Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH FORM_DRIVER 3CURSES "Dec 31, 1996"
9 form_driver \- command processor for the forms subsystem
13 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lform\fR \fB -lcurses \fR [ \fIlibrary\fR... ]
16 \fBint\fR \fBform_driver\fR(\fBFORM *\fR\fIform\fR, \fBint\fR \fIc\fR);
22 The \fBform_driver()\fR function is the workhorse of the \fBforms\fR subsystem;
23 it checks to determine whether the character \fIc\fR is a \fBforms\fR request
24 or data. If it is a request, the form driver executes the request and reports
25 the result. If it is data (a printable \fBASCII\fR character), it enters the
26 data into the current position in the current field. If it is not recognized,
27 the form driver assumes it is an application-defined command and returns
28 \fBE_UNKNOWN_COMMAND\fR. Application defined commands should be defined
29 relative to \fBMAX_COMMAND\fR, the maximum value of a request listed below.
39 Move to the next page.
48 Move to the previous page.
57 Move to the first page.
66 Move to the last page.
75 Move to the next field.
84 Move to the previous field.
93 Move to the first field.
102 Move to the last field.
108 \fBREQ_SNEXT_FIELD\fR
111 Move to the sorted next field.
117 \fBREQ_SPREV_FIELD\fR
120 Move to the sorted prev field.
126 \fBREQ_SFIRST_FIELD\fR
129 Move to the sorted first field.
135 \fBREQ_SLAST_FIELD\fR
138 Move to the sorted last field.
153 \fBREQ_RIGHT_FIELD\fR
183 Move to the next character in the field.
192 Move to the previous character in the field.
201 Move to the next line in the field.
210 Move to the previous line in the field.
219 Move to the next word in the field.
228 Move to the previous word in the field.
237 Move to the first char in the field.
246 Move after the last char in the field.
255 Move to the beginning of the line.
264 Move after the last char in the line.
273 Move left in the field.
282 Move right in the field.
291 Move up in the field.
300 Move down in the field.
309 Insert/overlay a new line.
318 Insert the blank character at the cursor.
327 Insert a blank line at the cursor.
336 Delete the character at the cursor.
345 Delete the character before the cursor.
354 Delete the line at the cursor.
363 Delete the word at the cursor.
372 Clear to the end of the line.
381 Clear to the end of the field.
390 Clear the entire field.
417 Scroll the field forward a line.
426 Scroll the field backward a line.
435 Scroll the field forward a page.
444 Scroll the field backward a page.
453 Scroll the field forward half a page.
462 Scroll the field backward half a page.
471 Horizontal scroll forward a character.
480 Horizontal scroll backward a character
489 Horizontal scroll forward a line.
498 Horizontal scroll backward a line.
507 Horizontal scroll forward half a line.
516 Horizontal scroll backward half a line.
531 \fBREQ_PREV_CHOICE\fR
534 Display the previous field choice.
540 \fBREQ_NEXT_CHOICE\fR
543 Display the next field choice.
549 The \fBform_driver()\fR function returns one of the following:
556 The function returned successfully.
574 An argument is incorrect.
583 The form is not posted.
589 \fBE_INVALID_FIELD\fR
592 The field contents are invalid.
601 The routine was called from an initialization or termination function.
607 \fBE_REQUEST_DENIED\fR
610 The form driver request failed.
616 \fBE_UNKNOWN_COMMAND\fR
619 An unknown request was passed to the form driver.
625 See \fBattributes\fR(5) for descriptions of the following attributes:
633 ATTRIBUTE TYPE ATTRIBUTE VALUE
641 \fBcurses\fR(3CURSES), \fBforms\fR(3CURSES), \fBattributes\fR(5)
645 The header <\fBform.h\fR> automatically includes the headers <\fBeti.h\fR> and