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
40 navigation keys. Please notice that an invisible
41 field appears to be inactive also.
44 The field contents are displayed as data is entered.
47 The field can be edited.
50 Words that don't fit on a line are wrapped to the
51 next line. Words are blank-separated.
54 The field is cleared whenever a character is entered
55 at the first position.
58 Skip to the next field when this one fills
63 Field buffers are fixed to field's original size.
66 Validate field only if modified by user.
70 <H2>RETURN VALUE</H2><PRE>
71 Except for <STRONG>field_opts</STRONG>, each routine returns one of the
74 <STRONG>E_OK</STRONG> The routine succeeded.
76 <STRONG>E_SYSTEM_ERROR</STRONG>
77 System error occurred (see <STRONG>errno</STRONG>).
79 <STRONG>E_CURRENT</STRONG>
80 The field is the current field.
84 <H2>SEE ALSO</H2><PRE>
85 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="form.3x.html">form(3X)</A></STRONG>.
88 <STRONG>NOTES</STRONG> The header file <STRONG><form.h></STRONG> automatically includes the
89 header file <STRONG><curses.h></STRONG>.
93 <H2>PORTABILITY</H2><PRE>
94 These routines emulate the System V forms library. They
95 were not supported on Version 7 or BSD versions.
100 Juergen Pfeifer. Manual pages and adaptation for new
101 curses by Eric S. Raymond.