4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>form_field_attributes</B> - color and attribute control for
13 <H2>SYNOPSIS</H2><PRE>
14 <B>#include</B> <B><form.h></B>
15 int set_field_fore(FIELD *field, chtype attr);
16 chtype field_fore(const FIELD *field);
17 int set_field_back(FIELD *field, chtype attr);
18 chtype field_back(const FIELD *field);
19 int set_field_pad(FIELD *field, int pad);
20 chtype field_pad(const FIELD *field);
24 <H2>DESCRIPTION</H2><PRE>
25 The function <B>set_field_fore</B> sets the foreground attribute
26 of <I>field</I>. This is the highlight used to display the field
27 contents. The function <B>field_fore</B> returns the foreground
28 attribute. The default is <B>A_STANDOUT</B>.
30 The function <B>set_field_back</B> sets the background attribute
31 of <I>form</I>. This is the highlight used to display the extent
32 fields in the form. The function <B>field_back</B> returns the
33 background attribute. The default is <B>A_NORMAL</B>.
35 The function <B>set_field_pad</B> sets the character used to fill
36 the field. The function <B>field_pad</B> returns the given
37 form's pad character. The default is a blank.
41 <H2>RETURN VALUE</H2><PRE>
42 These routines return one of the following:
44 <B>E_OK</B> The routine succeeded.
47 System error occurred (see <B>errno</B>).
50 Routine detected an incorrect or out-of-range argu-
55 <H2>SEE ALSO</H2><PRE>
56 <B><A HREF="ncurses.3x.html">curses(3x)</A></B> and 3x pages whose names begin "form_" for
57 detailed descriptions of the entry points.
62 The header file <B><form.h></B> automatically includes the header
63 file <B><curses.h></B>.
67 <H2>PORTABILITY</H2><PRE>
68 These routines emulate the System V forms library. They
69 were not supported on Version 7 or BSD versions.
74 Juergen Pfeifer. Manual pages and adaptation for new
75 curses by Eric S. Raymond.
132 Man(1) output converted with
133 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>