field_opts


HOME

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/dhparam.1ssl.html
dhparam(1ssl) - DH parameter manipulation and generation....
This command is used to manipulate DH parameter files. OPTIONS -inform DER|PEM This specifies the input format. The DER option uses an ASN1 DER encoded form com

manpages/tcsetpgrp.3.html
tcsetpgrp(3) - get and set terminal foreground process group
The function tcgetpgrp() returns the process group ID of the foreground process group on the terminal associated to fd, which must be the controlling terminal o

manpages/opreport.1.html
opreport(1) produce symbol or binary image summaries........
opreport outputs binary image summaries, or per-symbol data, from OProfile profiling sessions. See oprofile(1) for how to write profile specifications. OPTIONS

manpages/XtDestroyApplicationContext.3.html
XtDestroyApplicationContext(3) - create, destroy, and obtain
The XtCreateApplicationContext function returns an application context, which is an opaque type. Every application must have at least one application context. T

manpages/gnutls_pkcs12_generate_mac.3.html
gnutls_pkcs12_generate_mac(3) - API function (Man Page).....
This function will generate a MAC for the PKCS12 structure. RETURNS On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value. REPORTING BU

manpages/SDL_EnableKeyRepeat.3.html
SDL_EnableKeyRepeat(3) - Set keyboard repeat rate (ManPage)
Enables or disables the keyboard repeat rate. delay specifies how long the key must be pressed before it begins repeating, it then repeats at the speed specifie

manpages/IsPFKey.3.html
IsPFKey(3) - keysym classification macros - Linux man page
The IsCursorKey macro returns True if the specified KeySym is a cursor key. The IsFunctionKey macro returns True if the KeySym is a function key. The IsKeypadKe

manpages/pom_xpath_remove.7.html
pom_xpath_remove(7) remove an XML node from POM file........
This macro patches specified POM file removing all XML nodes described by the XPath expression. XPath is an expression describing a set of XML nodes to be remov

manpages/osip.1.html
osip(1) - The GNU oSIP library is a low layer SIP implementa
This manual page documents briefly the libosip2 library. API and Reference Documentation API reference &amp; Doxygen documentation is available for osip at http://w

manpages/config_perror.3.html
config_perror(3) - netsnmp_config_api functions (Man Page)
The functions are a fairly extensible system of parsing various configuration files at the run time of an application. The configuration file flow is broken int

manpages/prove.1.html
prove(1) - Run tests through a TAP harness. - Linux man page
prove [options] [files or directories] Additional option files may be specified with the &quot;rc&quot; option. Default option file processing is disabled by the ......

manpages/networks.5.html
networks(5) - network name information - Linux manual page
The file /etc/networks is a plain ASCII file that describes known DARPA networks and symbolic names for these networks. Each line represents a network and has t





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