Merge from vendor branch OPENSSH:
[dragonfly.git] / lib / libncurses / man / form_field_attributes.3
1 '\" t
2 .\"***************************************************************************
3 .\" Copyright (c) 1998,2001,2002 Free Software Foundation, Inc.              *
4 .\"                                                                          *
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:                 *
12 .\"                                                                          *
13 .\" The above copyright notice and this permission notice shall be included  *
14 .\" in all copies or substantial portions of the Software.                   *
15 .\"                                                                          *
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.                               *
23 .\"                                                                          *
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       *
27 .\" authorization.                                                           *
28 .\"***************************************************************************
29 .\"
30 .\" $Id: form_field_attributes.3x,v 1.7 2002/01/19 22:48:14 tom Exp $
31 .\" $DragonFly: src/lib/libncurses/man/form_field_attributes.3,v 1.1 2005/03/12 19:13:54 eirikn Exp $
32 .TH form_field_attributes 3X ""
33 .SH NAME
34 \fBform_field_attributes\fR - color and attribute control for form fields
35 .SH SYNOPSIS
36 \fB#include <form.h>\fR
37 .br
38 int set_field_fore(FIELD *field, chtype attr);
39 .br
40 chtype field_fore(const FIELD *field);
41 .br
42 int set_field_back(FIELD *field, chtype attr);
43 .br
44 chtype field_back(const FIELD *field);
45 .br
46 int set_field_pad(FIELD *field, int pad);
47 .br
48 int field_pad(const FIELD *field);
49 .br
50 .SH DESCRIPTION
51 The function \fBset_field_fore\fR sets the foreground attribute of
52 \fIfield\fR. This is the highlight used to display the field contents.  The
53 function \fBfield_fore\fR returns the foreground attribute.  The default is
54 \fBA_STANDOUT\fR.
55
56 The function \fBset_field_back\fR sets the background attribute of
57 \fIform\fR. This is the highlight used to display the extent fields in the
58 form.  The function \fBfield_back\fR returns the background attribute.  The
59 default is \fBA_NORMAL\fR.
60
61 The function \fBset_field_pad\fR sets the character used to fill the field.
62 The function \fBfield_pad\fR returns the given form's pad character.  The
63 default is a blank.
64 .SH RETURN VALUE
65 These routines return one of the following:
66 .TP 5
67 \fBE_OK\fR
68 The routine succeeded.
69 .TP 5
70 \fBE_SYSTEM_ERROR\fR
71 System error occurred (see \fBerrno\fR).
72 .TP 5
73 \fBE_BAD_ARGUMENT\fR
74 Routine detected an incorrect or out-of-range argument.
75 .SH SEE ALSO
76 \fBcurses\fR(3X) and related pages whose names begin "form_" for detailed
77 descriptions of the entry points.
78 .SH NOTES
79 The header file \fB<form.h>\fR automatically includes the header file
80 \fB<curses.h>\fR.
81 .SH PORTABILITY
82 These routines emulate the System V forms library.  They were not supported on
83 Version 7 or BSD versions.
84 .SH AUTHORS
85 Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric
86 S. Raymond.
87 .\"#
88 .\"# The following sets edit modes for GNU EMACS
89 .\"# Local Variables:
90 .\"# mode:nroff
91 .\"# fill-column:79
92 .\"# End: