2 .\"***************************************************************************
3 .\" Copyright (c) 1998-2010,2015 Free Software Foundation, Inc. *
5 .\" Permission is hereby granted, free of charge, to any person obtaining a *
6 .\" copy of this software and associated documentation files (the *
7 .\" "Software"), to deal in the Software without restriction, including *
8 .\" without limitation the rights to use, copy, modify, merge, publish, *
9 .\" distribute, distribute with modifications, sublicense, and/or sell *
10 .\" copies of the Software, and to permit persons to whom the Software is *
11 .\" furnished to do so, subject to the following conditions: *
13 .\" The above copyright notice and this permission notice shall be included *
14 .\" in all copies or substantial portions of the Software. *
16 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
24 .\" Except as contained in this notice, the name(s) of the above copyright *
25 .\" holders shall not be used in advertising or otherwise to promote the *
26 .\" sale, use or other dealings in this Software without prior written *
28 .\"***************************************************************************
30 .\" $Id: form_field_info.3x,v 1.13 2015/12/05 23:01:16 tom Exp $
31 .TH form_field_info 3X ""
33 \fBdynamic_field_info\fP,
34 \fBfield_info\fR \- retrieve field characteristics
36 \fB#include <form.h>\fR
38 int field_info(const FIELD *field, int *rows, int *cols,
39 int *frow, int *fcol, int *nrow, int *nbuf);
41 int dynamic_field_info(const FIELD *field, int *rows, int *cols, int *max);
44 The function \fBfield_info\fR returns the sizes and other attributes passed in
45 to the field at its creation time. The attributes are: height, width, row of
46 upper-left corner, column of upper-left corner, number off-screen rows, and
47 number of working buffers.
49 The function \fBdynamic_field_info\fR returns the actual size of the field, and
50 its maximum possible size. If the field has no size limit, the location
51 addressed by the third argument will be set to 0.
52 A field can be made dynamic
53 by turning off the \fBO_STATIC\fR option with \fBfield_opts_off\fR.
55 These routines return one of the following:
58 The routine succeeded.
61 System error occurred (see \fBerrno\fR).
64 Routine detected an incorrect or out-of-range argument.
66 \fBcurses\fR(3X) and related pages whose names begin "form_" for detailed
67 descriptions of the entry points.
69 The header file \fB<form.h>\fR automatically includes the header file
72 These routines emulate the System V forms library. They were not supported on
73 Version 7 or BSD versions.
75 A null (zero pointer) is accepted for any of the return values,
77 Not all implementations allow this, e.g., Solaris 2.7 does not.
79 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric