2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
4 <STRONG>form_field_opts</STRONG> - set and get field options
9 <STRONG>#include</STRONG> <STRONG><form.h></STRONG>
10 int set_field_opts(FIELD *field, OPTIONS opts);
11 int field_opts_on(FIELD *field, OPTIONS opts);
12 int field_opts_off(FIELD *field, OPTIONS opts);
13 OPTIONS field_opts(const FIELD *field);
17 <H2>DESCRIPTION</H2><PRE>
18 The function <STRONG>set_field_opts</STRONG> sets all the given field's
19 option bits (field option bits may be logically-OR'ed
22 The function <STRONG>field_opts_on</STRONG> turns on the given option bits,
23 and leaves others alone.
25 The function <STRONG>field_opts_off</STRONG> turns off the given option
26 bits, and leaves others alone.
28 The function <STRONG>field_opts</STRONG> returns the field's current option
31 The following options are defined (all are on by default):
34 The field is displayed. If this option is off, dis-
35 play of the field is suppressed,
38 The field is visited during processing. If this
39 option is off, the field will not be reachable by
43 The field contents are displayed as data is entered.
46 The field can be edited.
49 Words that don't fit on a line are wrapped to the
50 next line. Words are blank-separated.
53 The field is cleared whenever a character is entered
54 at the first position.
57 Skip to the next field when this one fills
60 Field buffers are fixed to field's original size.
63 Validate field only if modified by user.
67 <H2>RETURN VALUE</H2><PRE>
68 Except for <STRONG>field_opts</STRONG>, each routine returns one of the
71 <STRONG>E_OK</STRONG> The routine succeeded.
73 <STRONG>E_SYSTEM_ERROR</STRONG>
74 System error occurred (see <STRONG>errno</STRONG>).
76 <STRONG>E_CURRENT</STRONG>
77 The field is the current field.
81 <H2>SEE ALSO</H2><PRE>
82 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="form.3x.html">form(3X)</A></STRONG>.
85 <STRONG>NOTES</STRONG> The header file <STRONG><form.h></STRONG> automatically includes the
86 header file <STRONG><curses.h></STRONG>.
90 <H2>PORTABILITY</H2><PRE>
91 These routines emulate the System V forms library. They
92 were not supported on Version 7 or BSD versions.
97 Juergen Pfeifer. Manual pages and adaptation for new
98 curses by Eric S. Raymond.