2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
4 <STRONG>form_opts</STRONG> - set and get form options
9 <STRONG>#include</STRONG> <STRONG><form.h></STRONG>
10 int set_form_opts(FORM *form, OPTIONS opts);
11 int form_opts_on(FORM *form, OPTIONS opts);
12 int form_opts_off(FORM *form, OPTIONS opts);
13 OPTIONS form_opts(const FORM *form);
17 <H2>DESCRIPTION</H2><PRE>
18 The function <STRONG>set_form_opts</STRONG> sets all the given form's
19 option bits (form option bits may be logically-OR'ed
22 The function <STRONG>form_opts_on</STRONG> turns on the given option bits,
23 and leaves others alone.
25 The function <STRONG>form_opts_off</STRONG> turns off the given option
26 bits, and leaves others alone.
28 The function <STRONG>form_opts</STRONG> returns the form's current option
31 The following options are defined (all are on by default):
34 Overload the <STRONG>REQ_NEW_LINE</STRONG> forms driver request so
35 that calling it at the end of a field goes to the
39 Overload the <STRONG>REQ_DEL_PREV</STRONG> forms driver request so
40 that calling it at the beginning of a field goes to
45 <H2>RETURN VALUE</H2><PRE>
46 Except for <STRONG>form_opts</STRONG>, each routine returns one of the fol-
49 <STRONG>E_OK</STRONG> The routine succeeded.
51 <STRONG>E_SYSTEM_ERROR</STRONG>
52 System error occurred (see <STRONG>errno</STRONG>).
56 <H2>SEE ALSO</H2><PRE>
57 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="form.3x.html">form(3X)</A></STRONG>.
62 The header file <STRONG><form.h></STRONG> automatically includes the header
63 file <STRONG><curses.h></STRONG>.
67 <H2>PORTABILITY</H2><PRE>
72 Juergen Pfeifer. Manual pages and adaptation for new
73 curses by Eric S. Raymond.