field_opts



field_opts

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
NOTES
PORTABILITY
AUTHORS

NAME

form_field_opts − set and get field options

SYNOPSIS

#include <form.h>
int set_field_opts(FIELD *field, Field_Options opts);
int field_opts_on(FIELD *field, Field_Options opts);
int field_opts_off(FIELD *field, Field_Options opts);
Field_Options field_opts(const FIELD *field);

DESCRIPTION

The function set_field_opts sets all the given field’s option bits (field option bits may be logically-OR’ed together).

The function field_opts_on turns on the given option bits, and leaves others alone.

The function field_opts_off turns off the given option bits, and leaves others alone.

The function field_opts returns the field’s current option bits.

The following standard options are defined (all are on by default):
O_ACTIVE

The field is visited during processing. If this option is off, the field will not be reachable by navigation keys. Please notice that an invisible field appears to be inactive also.

O_AUTOSKIP

Skip to the next field when this one fills.

O_BLANK

The field is cleared whenever a character is entered at the first position.

O_EDIT

The field can be edited.

O_NULLOK

Allow a blank field.

O_PASSOK

Validate field only if modified by user.

O_PUBLIC

The field contents are displayed as data is entered.

O_STATIC

Field buffers are fixed to field’s original size. Turn this option off to create a dynamic field.

O_VISIBLE

The field is displayed. If this option is off, display of the field is suppressed.

O_WRAP

Words that do not fit on a line are wrapped to the next line. Words are blank-separated.

One extension option is defined (extensions are off by default):
O_DYNAMIC_JUSTIFY

Permit dynamic fields to be justified, like static fields.

RETURN VALUE

Except for field_opts, each routine returns one of the following:

E_OK

The routine succeeded.

E_BAD_ARGUMENT

Routine detected an incorrect or out-of-range argument.

E_CURRENT

The field is the current field.

E_SYSTEM_ERROR

System error occurred (see errno).

SEE ALSO

ncurses(3NCURSES), form(3FORM). field_just(3FORM).

NOTES

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

PORTABILITY

These routines emulate the System V forms library. They were not supported on Version 7 or BSD versions.

AUTHORS

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.




More Linux Commands

manpages/systemd-vconsole-setup.8.html
systemd-vconsole-setup(8) Configure the virtual console at b
systemd-vconsole-setup.service is an early-boot service that configures the virtual console font and console keymap. Internally it calls loadkeys(1) and setfont

manpages/glTexCoord3sv.3gl.html
glTexCoord3sv(3gl) - set the current texture coordinates....
glTexCoord specifies texture coordinates in one, two, three, or four dimensions. glTexCoord1 sets the current texture coordinates to (s, 0, 0, 1); a call to glT

manpages/CPU_ISSET.3.html
CPU_ISSET(3) - macros for manipulating CPU sets (Man Page)
The cpu_set_t data structure represents a set of CPUs. CPU sets are used by sched_setaffinity(2) and similar interfaces. The cpu_set_t data type is implemented

manpages/gluNewTess.3gl.html
gluNewTess(3gl) - create a tessellation object (Man Page)...
gluNewTess creates and returns a pointer to a new tessellation object. This object must be referred to when calling tessellation functions. A return value of 0

manpages/e2image.8.html
e2image(8) - Save critical ext2/ext3/ext4 filesystem metadat
The e2image program will save critical ext2, ext3, or ext4 filesystem metadata located on device to a file specified by image-file. The image file may be examin

manpages/systemd-localed.8.html
systemd-localed(8) Locale bus mechanism - Linux manual page
systemd-localed is a system service that may be used as mechanism to change the system locale settings, as well as the console key mapping and default X11 key m

manpages/ipcs.1.html
ipcs(1) - provide information on ipc facilities (Man Page)
ipcs shows information on the inter-process communication facilities for which the calling process has read access. By default it shows information about all th

manpages/colorfire.1.html
colorfire(1) - Color-fire-explosion-thing-effect. (ManPage)
From Andreas Gustafsson (http://www.lysator.liu.se/~sdw/opengl2000.html): This didnt take me long to do, and I didnt write more than approximately 100 lines of

manpages/Tcl_RegExpMatch.3.html
Tcl_RegExpMatch(3) - Pattern matching with regular expressio
Tcl_RegExpMatch determines whether its pattern argument matches regexp, where regexp is interpreted as a regular expression using the rules in the re_syntax ref

manpages/gresource.1.html
gresource(1) GResource tool (Commands - Linux man page).....
gresource offers a simple commandline interface to GResource. It lets you list and extract resources that have been compiled into a resource file or included in

manpages/git-init.1.html
git-init(1) - Create an empty git repository or reinitialize
This command creates an empty Git repository - basically a .git directory with subdirectories for objects, refs/heads, refs/tags, and template files. An initial

manpages/glutSolidTorus.3.html
glutSolidTorus(3) - render a solid or wireframe torus (dough
glutSolidTorus and glutWireTorus render a solid or wireframe torus (doughnut) respectively centered at the modeling coordinates origin whose axis is aligned wit





We can't live, work or learn in freedom unless the software we use is free.