4 <STRONG>form_field_info</STRONG> - retrieve field characteristics
9 <STRONG>#include</STRONG> <STRONG><form.h></STRONG>
10 int field_info(const FIELD *field, int *rows, int *cols,
11 int *frow, int *fcol, int *nrow, int *nbuf);
12 int dynamic_field_info(const FIELD *field, int *rows, int
17 <H2>DESCRIPTION</H2><PRE>
18 The function <STRONG>field_info</STRONG> returns the sizes and other
19 attributes passed in to the field at its creation time.
20 The attributes are: height, width, row of upper-left cor-
21 ner, column of upper-left corner, number off-screen rows,
22 and number of working buffers.
24 The function <STRONG>dynamic_field_info</STRONG> returns the actual size of
25 the field, and its maximum possible size. If the field
26 has no size limit, the location addressed by the third
27 argument will be set to 0. (A field can be made dynamic
28 by turning off the <STRONG>O_STATIC</STRONG>).
32 <H2>RETURN VALUE</H2><PRE>
33 These routines return one of the following:
35 <STRONG>E_OK</STRONG> The routine succeeded.
37 <STRONG>E_SYSTEM_ERROR</STRONG>
38 System error occurred (see <STRONG>errno</STRONG>).
40 <STRONG>E_BAD_ARGUMENT</STRONG>
41 Routine detected an incorrect or out-of-range argu-
46 <H2>SEE ALSO</H2><PRE>
47 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG> and 3X pages whose names begin "form_" for
48 detailed descriptions of the entry points.
53 The header file <STRONG><form.h></STRONG> automatically includes the header
54 file <STRONG><curses.h></STRONG>.
58 <H2>PORTABILITY</H2><PRE>
59 These routines emulate the System V forms library. They
60 were not supported on Version 7 or BSD versions.
65 Juergen Pfeifer. Manual pages and adaptation for new
66 curses by Eric S. Raymond.