2 .\"***************************************************************************
3 .\" Copyright 2018-2019,2020 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.18 2020/10/18 00:14:20 tom Exp $
32 .TH form_field_attributes 3X ""
38 \fBform_field_attributes\fR \- color and attribute control for form fields
40 \fB#include <form.h>\fR
42 \fBint set_field_fore(FIELD *\fP\fIfield\fP\fB, chtype \fP\fIattr\fP\fB);\fP
44 \fBchtype field_fore(const FIELD *\fP\fIfield\fP\fB);\fP
46 \fBint set_field_back(FIELD *\fP\fIfield\fP\fB, chtype \fP\fIattr\fP\fB);\fP
48 \fBchtype field_back(const FIELD *\fP\fIfield\fP\fB);\fP
50 \fBint set_field_pad(FIELD *\fP\fIfield\fP\fB, int \fP\fIpad\fP\fB);\fP
52 \fBint field_pad(const FIELD *\fP\fIfield\fP\fB);\fP
55 The function \fBset_field_fore\fR sets the foreground attribute of
56 \fIfield\fR. This is the highlight used to display the field contents. The
57 function \fBfield_fore\fR returns the foreground attribute.
61 The function \fBset_field_back\fR sets the background attribute of
62 \fIform\fR. This is the highlight used to display the extent fields in the
64 The function \fBfield_back\fR returns the background attribute.
66 default is \fBA_NORMAL\fR.
68 The function \fBset_field_pad\fR sets the character used to fill the field.
69 The function \fBfield_pad\fR returns the given form's pad character.
73 These routines return one of the following:
76 The routine succeeded.
79 Routine detected an incorrect or out-of-range argument.
82 System error occurred (see \fBerrno\fR(3)).
85 \fBcurses\fR(3X) and related pages whose names begin \*(``form_\*('' for detailed
86 descriptions of the entry points.
88 The header file \fB<form.h>\fR automatically includes the header file
91 These routines emulate the System V forms library.
92 They were not supported on
93 Version 7 or BSD versions.
96 Manual pages and adaptation for new curses by Eric S. Raymond.