NAME
ffoorrmmffiieellddnneeww - create and destroy form fields
SYNOPSIS
##iinncclluuddee <
FIELD *newfield(int height, int width, int toprow, int leftcol, int offscreen, int nbuffers); FIELD *dupfield(FIELD *field, int toprow, int leftcol); FIELD *linkfield(FIELD *field, int toprow, int leftcol); int freefield(FIELD *field);> DESCRIPTION
The function nneewwffiieelldd allocates a new field and initializes it fromthe 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 dduuppffiieelldd 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 lliinnkkffiieelldd acts like dduuppffiieelldd, but the new field shares buffers with its parent. Attribute data is separate.The function ffrreeeeffiieelldd de-allocates storage associated with a field.
RREETTUURRNN VVAALLUUEE The function, nneewwffiieelldd, dduuppffiieelldd, lliinnkkffiieelldd return NNUULLLL on error. The function ffrreeeeffiieelldd returns one of the following: EEOOKK The routine succeeded. EESSYYSSTTEEMMEERRRROORR System error occurred (see eerrrrnnoo). EEBBAADDAARRGGUUMMEENNTTRoutine detected an incorrect or out-of-range argument.
SEE ALSO
ccuurrsseess(3X), ffoorrmm(3X). NNOOTTEESS The header file <> automatically includes the header file < >. PPOORRTTAABBIILLIITTYY These routines emulate the System V forms library. They were not sup-
ported on Version 7 or BSD versions. It may be unwise to count on the set of attributes copied by dduuppffiieelldd(3X) being portable; the System V forms library documents are not very explicit about what gets copied and what doesn't. AUTHORS Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. formfieldnew(3X)