2 .\"***************************************************************************
3 .\" Copyright 2018-2022,2023 Thomas E. Dickey *
4 .\" Copyright 1998-2006,2010 Free Software Foundation, Inc. *
6 .\" Permission is hereby granted, free of charge, to any person obtaining a *
7 .\" copy of this software and associated documentation files (the *
8 .\" "Software"), to deal in the Software without restriction, including *
9 .\" without limitation the rights to use, copy, modify, merge, publish, *
10 .\" distribute, distribute with modifications, sublicense, and/or sell *
11 .\" copies of the Software, and to permit persons to whom the Software is *
12 .\" furnished to do so, subject to the following conditions: *
14 .\" The above copyright notice and this permission notice shall be included *
15 .\" in all copies or substantial portions of the Software. *
17 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
18 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
19 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
20 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
21 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
22 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
23 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
25 .\" Except as contained in this notice, the name(s) of the above copyright *
26 .\" holders shall not be used in advertising or otherwise to promote the *
27 .\" sale, use or other dealings in this Software without prior written *
29 .\"***************************************************************************
31 .\" $Id: form_field_attributes.3x,v 1.33 2023/11/25 13:58:47 tom Exp $
32 .TH form_field_attributes 3X 2023-11-25 "ncurses 6.4" "Library calls"
44 \fBform_field_attributes\fP \-
45 color and attribute control for form fields
50 \fBint set_field_fore(FIELD *\fIfield\fP, chtype \fIattr\fP);
51 \fBchtype field_fore(const FIELD *\fIfield\fP);
53 \fBint set_field_back(FIELD *\fIfield\fP, chtype \fIattr\fP);
54 \fBchtype field_back(const FIELD *\fIfield\fP);
56 \fBint set_field_pad(FIELD *\fIfield\fP, int \fIpad\fP);
57 \fBint field_pad(const FIELD *\fIfield\fP);
60 The function \fBset_field_fore\fP sets the foreground attribute of
61 \fIfield\fP. This is the highlight used to display the field contents. The
62 function \fBfield_fore\fP returns the foreground attribute.
66 The function \fBset_field_back\fP sets the background attribute of
67 \fIform\fP. This is the highlight used to display the extent fields in the
69 The function \fBfield_back\fP returns the background attribute.
71 default is \fBA_NORMAL\fP.
73 The function \fBset_field_pad\fP sets the character used to fill the field.
74 The function \fBfield_pad\fP returns the given form's pad character.
78 These routines return one of the following:
81 The routine succeeded.
84 Routine detected an incorrect or out-of-range argument.
87 System error occurred (see \fBerrno\fP(3)).
89 These routines emulate the System V forms library.
90 They were not supported on
91 Version 7 or BSD versions.
94 Manual pages and adaptation for new curses by Eric S. Raymond.
96 \fB\%curses\fP(3X) and related pages whose names begin \*(``form_\*(''
97 for detailed descriptions of the entry points.