2 .TH form_field_opts 3X ""
4 \fBform_field_opts\fR - set and get field options
6 \fB#include <form.h>\fR
8 int set_field_opts(FIELD *field, OPTIONS opts);
10 int field_opts_on(FIELD *field, OPTIONS opts);
12 int field_opts_off(FIELD *field, OPTIONS opts);
14 OPTIONS field_opts(const FIELD *field);
17 The function \fBset_field_opts\fR sets all the given field's option bits (field
18 option bits may be logically-OR'ed together).
20 The function \fBfield_opts_on\fR turns on the given option bits, and leaves
23 The function \fBfield_opts_off\fR turns off the given option bits, and leaves
26 The function \fBfield_opts\fR returns the field's current option bits.
28 The following options are defined (all are on by default):
31 The field is displayed. If this option is off, display of the field is
35 The field is visited during processing. If this option is off, the field will
36 not be reachable by navigation keys. Please notice that an invisible field
37 appears to be inactive also.
40 The field contents are displayed as data is entered.
43 The field can be edited.
46 Words that don't fit on a line are wrapped to the next line. Words are
50 The field is cleared whenever a character is entered at the first position.
53 Skip to the next field when this one fills
59 Field buffers are fixed to field's original size.
62 Validate field only if modified by user.
64 Except for \fBfield_opts\fR, each routine returns one of the following:
67 The routine succeeded.
70 System error occurred (see \fBerrno\fR).
73 The field is the current field.
75 \fBcurses\fR(3X), \fBform\fR(3X).
78 The header file \fB<form.h>\fR automatically includes the header file
81 These routines emulate the System V forms library. They were not supported on
82 Version 7 or BSD versions.
84 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
87 .\"# The following sets edit modes for GNU EMACS