<HTML>
<BODY>
<PRE>
- <STRONG>form_driver</STRONG> - command-processing loop of the form system
+<!-- Manpage converted by man2html 3.0.1 -->
+
+</PRE>
+<H2>NAME</H2><PRE>
+ <B>form_driver</B> - command-processing loop of the form system
</PRE>
<H2>SYNOPSIS</H2><PRE>
- <STRONG>#include</STRONG> <STRONG><form.h></STRONG>
+ <B>#include</B> <B><form.h></B>
int form_driver(FORM *form, int c);
</PRE>
<H2>DESCRIPTION</H2><PRE>
Once a form has been posted (displayed), you should funnel
- input events to it through <STRONG>form_driver</STRONG>. This routine has
+ input events to it through <B>form_driver</B>. 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:
REQ_LEFT_FIELD
Move left to a field.
+
+ REQ_RIGHT_FIELD
Move right to a field.
REQ_UP_FIELD
Move down in the field.
+
+ REQ_NEW_LINE
Insert or overlay a new line.
REQ_INS_CHAR
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
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
- <STRONG>E_UNKNOWN_COMMAND</STRONG>. Application-defined commands should be
- defined relative to <STRONG>MAX_COMMAND</STRONG>, the maximum value of
+ <B>E_UNKNOWN_COMMAND</B>. Application-defined commands should be
+ defined relative to <B>MAX_COMMAND</B>, the maximum value of
these pre-defined requests.
</PRE>
<H2>RETURN VALUE</H2><PRE>
- <STRONG>form_driver</STRONG> return one of the following error codes:
+ <B>form_driver</B> return one of the following error codes:
- <STRONG>E_OK</STRONG> The routine succeeded.
+ <B>E_OK</B> The routine succeeded.
- <STRONG>E_SYSTEM_ERROR</STRONG>
- System error occurred (see <STRONG>errno</STRONG>).
+ <B>E_SYSTEM_ERROR</B>
+ System error occurred (see <B>errno</B>).
- <STRONG>E_BAD_ARGUMENT</STRONG>
+ <B>E_BAD_ARGUMENT</B>
Routine detected an incorrect or out-of-range argu-
ment.
- <STRONG>E_BAD_STATE</STRONG>
+ <B>E_BAD_STATE</B>
+ Routine was called from an initialization or
+ termination function.
- <STRONG>E_NOT_POSTED</STRONG>
+ <B>E_NOT_POSTED</B>
The form has not been posted.
- <STRONG>E_UNKNOWN_COMMAND</STRONG>
+ <B>E_UNKNOWN_COMMAND</B>
The form driver code saw an unknown request code.
- <STRONG>E_INVALID_FIELD</STRONG>
+ <B>E_INVALID_FIELD</B>
Contents of field is invalid.
- <STRONG>E_REQUEST_DENIED</STRONG>
+ <B>E_REQUEST_DENIED</B>
The form driver could not process the request.
</PRE>
<H2>SEE ALSO</H2><PRE>
- <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="form.3x.html">form(3X)</A></STRONG>.
+ <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="form.3x.html">form(3x)</A></B>.
</PRE>
<H2>NOTES</H2><PRE>
- The header file <STRONG><form.h></STRONG> automatically includes the header
- files <STRONG><curses.h></STRONG>.
+ The header file <B><form.h></B> automatically includes the header
+ files <B><curses.h></B>.
</PRE>
+
</PRE>
+<HR>
+<ADDRESS>
+Man(1) output converted with
+<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
+</ADDRESS>
</BODY>
</HTML>