1form_field_opts(3X)                                        form_field_opts(3X)
2
3
4

NAME

6       set_field_opts, field_opts_on, field_opts_off, field_opts - set and get
7       field options
8

SYNOPSIS

10       #include <form.h>
11       int set_field_opts(FIELD *field, Field_Options opts);
12       int field_opts_on(FIELD *field, Field_Options opts);
13       int field_opts_off(FIELD *field, Field_Options opts);
14       Field_Options field_opts(const FIELD *field);
15

DESCRIPTION

17       The function set_field_opts sets all  the  given  field's  option  bits
18       (field option bits may be logically-OR'ed together).
19
20       The  function  field_opts_on turns on the given option bits, and leaves
21       others alone.
22
23       The function field_opts_off turns off the given option bits, and leaves
24       others alone.
25
26       The function field_opts returns the field's current option bits.
27
28       The following standard options are defined (all are on by default):
29
30       O_ACTIVE
31            The  field  is  visited during processing.  If this option is off,
32            the field will not be reachable by navigation keys. Please  notice
33            that an invisible field appears to be inactive also.
34
35       O_AUTOSKIP
36            Skip to the next field when this one fills.
37
38       O_BLANK
39            The  field is cleared whenever a character is entered at the first
40            position.
41
42       O_EDIT
43            The field can be edited.
44
45       O_NULLOK
46            Allow a blank field.
47
48       O_PASSOK
49            Validate field only if modified by user.
50
51       O_PUBLIC
52            The field contents are displayed as data is entered.
53
54       O_STATIC
55            Field buffers are fixed  to  field's  original  size.   Turn  this
56            option off to create a dynamic field.
57
58       O_VISIBLE
59            The  field  is  displayed.   If this option is off, display of the
60            field is suppressed.
61
62       O_WRAP
63            Words that do not fit on a line are  wrapped  to  the  next  line.
64            Words are blank-separated.
65
66       These extension options are defined (extensions are off by default):
67
68       O_DYNAMIC_JUSTIFY
69            Permit dynamic fields to be justified, like static fields.
70
71       O_NO_LEFT_STRIP
72            Preserve leading whitespace in the field buffer, which is normally
73            discarded.
74

RETURN VALUE

76       Except for field_opts, each routine returns one of the following:
77
78       E_OK The routine succeeded.
79
80       E_BAD_ARGUMENT
81            Routine detected an incorrect or out-of-range argument.
82
83       E_CURRENT
84            The field is the current field.
85
86       E_SYSTEM_ERROR
87            System error occurred (see errno).
88

SEE ALSO

90       curses(3X), form(3X).  form_field_just(3X).
91

NOTES

93       The  header  file  <form.h>  automatically  includes  the  header  file
94       <curses.h>.
95

PORTABILITY

97       These  routines emulate the System V forms library.  They were not sup‐
98       ported on Version 7 or BSD versions.
99

AUTHORS

101       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
102       Raymond.
103
104
105
106                                                           form_field_opts(3X)
Impressum