4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>form_field_opts</B> - set and get field options
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><form.h></B>
14 int set_field_opts(FIELD *field, OPTIONS opts);
15 int field_opts_on(FIELD *field, OPTIONS opts);
16 int field_opts_off(FIELD *field, OPTIONS opts);
17 OPTIONS field_opts(const FIELD *field);
21 <H2>DESCRIPTION</H2><PRE>
22 The function <B>set_field_opts</B> sets all the given field's
23 option bits (field option bits may be logically-OR'ed
26 The function <B>field_opts_on</B> turns on the given option bits,
27 and leaves others alone.
29 The function <B>field_opts_off</B> turns off the given option
30 bits, and leaves others alone.
32 The function <B>field_opts</B> returns the field's current option
35 The following options are defined (all are on by default):
38 The field is displayed. If this option is off, dis-
39 play of the field is suppressed,
42 The field is visited during processing. If this
43 option is off, the field will not be reachable by
44 navigation keys. Please notice that an invisible
45 field appears to be inactive also.
48 The field contents are displayed as data is entered.
51 The field can be edited.
54 Words that don't fit on a line are wrapped to the
55 next line. Words are blank-separated.
58 The field is cleared whenever a character is entered
59 at the first position.
62 Skip to the next field when this one fills
69 Field buffers are fixed to field's original size.
72 Validate field only if modified by user.
76 <H2>RETURN VALUE</H2><PRE>
77 Except for <B>field_opts</B>, each routine returns one of the
80 <B>E_OK</B> The routine succeeded.
83 System error occurred (see <B>errno</B>).
86 The field is the current field.
90 <H2>SEE ALSO</H2><PRE>
91 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="form.3x.html">form(3x)</A></B>.
94 <B>NOTES</B> The header file <B><form.h></B> automatically includes the
95 header file <B><curses.h></B>.
99 <H2>PORTABILITY</H2><PRE>
100 These routines emulate the System V forms library. They
101 were not supported on Version 7 or BSD versions.
105 <H2>AUTHORS</H2><PRE>
106 Juergen Pfeifer. Manual pages and adaptation for new
107 curses by Eric S. Raymond.
130 Man(1) output converted with
131 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>