field_new


HOME

field_new

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
NOTES
PORTABILITY
AUTHORS

NAME

form_field_new − create and destroy form fields

SYNOPSIS

#include <form.h>
FIELD *new_field(int height, int width,
int toprow, int leftcol,
int offscreen, int nbuffers);
FIELD *dup_field(FIELD *field, int toprow, int leftcol);
FIELD *link_field(FIELD *field, int toprow, int leftcol);
int free_field(FIELD *field);

DESCRIPTION

The function new_field allocates a new field and initializes it from the parameters given: height, width, row of upper-left corner, column of upper-left corner, number off-screen rows, and number of additional working buffers.

The function dup_field duplicates a field at a new location. Most attributes (including current contents, size, validation type, buffer count, growth threshold, justification, foreground, background, pad character, options, and user pointer) are copied. Field status and the field page bit are not copied.

The function link_field acts like dup_field, but the new field shares buffers with its parent. Attribute data is separate.

The function free_field de-allocates storage associated with a field.

RETURN VALUE

The function, new_field, dup_field, link_field return NULL on error. They set errno according to their success:

E_OK

The routine succeeded.

E_BAD_ARGUMENT

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

E_SYSTEM_ERROR

System error occurred, e.g., malloc failure.

The function free_field returns one of the following:

E_OK

The routine succeeded.

E_BAD_ARGUMENT

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

E_CONNECTED

field is connected.

SEE ALSO

ncurses(3NCURSES), form(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.

It may be unwise to count on the set of attributes copied by dup_field being portable; the System V forms library documents are not very explicit about what gets copied and what does not.

AUTHORS

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




More Linux Commands

manpages/mvwin_wch.3ncurses.html
mvwin_wch(3ncurses) - extract a complex character and rendit
These functions extract the complex character and rendition from the current position in the named window into the cchar_t object referenced by wcval. RETURN VA

manpages/svnlook.1.html
svnlook(1) - Subversion repository examination tool.........
svnlook.1 - Subversion is a version control system, which allows you to keep old versions of files and directories (usually source code), keep a log of who, whe

manpages/XkbChangeControls.3.html
XkbChangeControls(3) - Provides a flexible method for updati
The XkbControlsChangesRec structure allows applications to track modifications to an XkbControlsRec structure and thereby reduce the amount of traffic sent to t

manpages/pcre_pattern_to_host_byte_order.3.html
pcre_pattern_to_host_byte_order(3) Perl-compatible regular e
This function ensures that the bytes in 2-byte and 4-byte values in a compiled pattern are in the correct order for the current host. It is useful when a patter

manpages/acl_free.3.html
acl_free(3) - release memory allocated to an ACL data object
The acl_free() function frees any releasable memory currently allocated by to the ACL data object identified by obj_p. The argument obj_p may identify an ACL, a

manpages/gnutls_hmac.3.html
gnutls_hmac(3) - API function (Library - Linux man page)....
gnutls_hmac.3 - This function will hash the given data using the algorithm specified by the context. RETURNS Zero or a negative error code on error. SINCE 2.10.

manpages/ldif.5.html
ldif(5) - LDAP Data Interchange Format - Linux manual page
The LDAP Data Interchange Format (LDIF) is used to represent LDAP entries and change records in text form. LDAP tools, such as ldapadd(1) and ldapsearch(1), rea

manpages/apparmor.d.5.html
apparmor.d(5) syntax of security profiles for AppArmor......
AppArmor profiles describe mandatory access rights granted to given programs and are fed to the AppArmor policy enforcement module using apparmor_parser(8). Thi

manpages/Xutf8TextEscapement.3.html
Xutf8TextEscapement(3) - obtain the escapement of text......
The XmbTextEscapement, XwcTextEscapement and Xutf8TextEscapement functions return the escapement in pixels of the specified string as a value, using the fonts l

manpages/snmpdf.1.html
snmpdf(1) - display disk space usage on a network entity via
snmpdf is simply a networked version of the typical df command. It checks the disk space on the remote machine by examining the HOST-RESOURCES-MIBs hrStorageTab

manpages/XtAppSetErrorHandler.3.html
XtAppSetErrorHandler(3) - low-level error handlers (ManPage)
The XtAppError function calls the installed error procedure and passes the specified message. The XtAppSetErrorHandler function registers the specified procedur

manpages/Tcl_TraceVar.3.html
Tcl_TraceVar(3) - monitor accesses to a variable (Man Page)
Tcl_TraceVar allows a C procedure to monitor and control access to a Tcl variable, so that the C procedure is invoked whenever the variable is read or written o





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