4 <STRONG>form_field_attributes</STRONG> - color and attribute control for
10 <STRONG>#include</STRONG> <STRONG><form.h></STRONG>
11 int set_field_fore(FIELD *field, chtype attr);
12 chtype field_fore(const FIELD *field);
13 int set_field_back(FIELD *field, chtype attr);
14 chtype field_back(const FIELD *field);
15 int set_field_pad(FIELD *field, int pad);
16 chtype field_pad(const FIELD *field);
20 <H2>DESCRIPTION</H2><PRE>
21 The function <STRONG>set_field_fore</STRONG> sets the foreground attribute
22 of <EM>field</EM>. This is the highlight used to display the field
23 contents. The function <STRONG>field_fore</STRONG> returns the foreground
24 attribute. The default is <STRONG>A_STANDOUT</STRONG>.
26 The function <STRONG>set_field_back</STRONG> sets the background attribute
27 of <EM>form</EM>. This is the highlight used to display the extent
28 fields in the form. The function <STRONG>field_back</STRONG> returns the
29 background attribute. The default is <STRONG>A_NORMAL</STRONG>.
31 The function <STRONG>set_field_pad</STRONG> sets the character used to fill
32 the field. The function <STRONG>field_pad</STRONG> returns the given
33 form's pad character. The default is a blank.
37 <H2>RETURN VALUE</H2><PRE>
38 These routines return one of the following:
40 <STRONG>E_OK</STRONG> The routine succeeded.
42 <STRONG>E_SYSTEM_ERROR</STRONG>
43 System error occurred (see <STRONG>errno</STRONG>).
45 <STRONG>E_BAD_ARGUMENT</STRONG>
46 Routine detected an incorrect or out-of-range argu-
51 <H2>SEE ALSO</H2><PRE>
52 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG> and 3X pages whose names begin "form_" for
53 detailed descriptions of the entry points.
58 The header file <STRONG><form.h></STRONG> automatically includes the header
59 file <STRONG><curses.h></STRONG>.
63 <H2>PORTABILITY</H2><PRE>
64 These routines emulate the System V forms library. They
65 were not supported on Version 7 or BSD versions.