FORMS(3) | Library Functions Manual | FORMS(3) |
field_opts
, field_opts_off
,
field_opts_on
, set_field_opts
—
#include <form.h>
Form_Options
field_opts
(FIELD
*field);
int
field_opts_off
(FIELD
*field, Form_Options
options);
int
field_opts_on
(FIELD
*field, Form_Options
options);
int
set_field_opts
(FIELD
*field, Form_Options
options);
field_opts
() returns the current options
settings for the given field. The field_opts_off
()
will turn the options given in options off for the given
field, options not specified in options will remain
unchanged. Conversely, the function field_opts_on
()
will turn on the options given in options for the
specified field, again, any options not specified will remain unchanged. The
options for a field may be set to a specific set of options by calling the
set_field_opts
() function. Options may only be changed
if the field given is not the currently active one.
O_VISIBLE
O_ACTIVE
O_PUBLIC
O_EDIT
O_WRAP
O_BLANK
O_AUTOSKIP
O_NULLOK
O_STATIC
O_PASSOK
O_REFORMAT
field_buffer
().The following options are on by default for a field:
O_VISIBLE
, O_ACTIVE
,
O_PUBLIC
, O_EDIT
,
O_WRAP
, O_BLANK
,
O_AUTOSKIP
, O_NULLOK
,
O_PASSOK
, and O_STATIC
.
NULL
if an
error is detected. The functions that return an int will return one of the
following error values:
E_OK
E_CURRENT
<form.h>
automatically includes both
<curses.h>
and
<eti.h>
. The option
O_REFORMAT
is a NetBSD
November 24, 2004 | NetBSD 9.0 |