1form_field_attributes(3X) form_field_attributes(3X)
2
3
4
6 form_field_attributes - color and attribute control for form fields
7
9 #include <form.h>
10 int set_field_fore(FIELD *field, chtype attr);
11 chtype field_fore(const FIELD *field);
12 int set_field_back(FIELD *field, chtype attr);
13 chtype field_back(const FIELD *field);
14 int set_field_pad(FIELD *field, int pad);
15 int field_pad(const FIELD *field);
16
18 The function set_field_fore sets the foreground attribute of field.
19 This is the highlight used to display the field contents. The function
20 field_fore returns the foreground attribute. The default is A_STAND‐
21 OUT.
22
23 The function set_field_back sets the background attribute of form. This
24 is the highlight used to display the extent fields in the form. The
25 function field_back returns the background attribute. The default is
26 A_NORMAL.
27
28 The function set_field_pad sets the character used to fill the field.
29 The function field_pad returns the given form's pad character. The
30 default is a blank.
31
33 These routines return one of the following:
34
35 E_OK The routine succeeded.
36
37 E_BAD_ARGUMENT
38 Routine detected an incorrect or out-of-range argument.
39
40 E_SYSTEM_ERROR
41 System error occurred (see errno(3)).
42
44 curses(3X) and related pages whose names begin "form_" for detailed
45 descriptions of the entry points.
46
48 The header file <form.h> automatically includes the header file
49 <curses.h>.
50
52 These routines emulate the System V forms library. They were not sup‐
53 ported on Version 7 or BSD versions.
54
56 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
57 Raymond.
58
59
60
61 form_field_attributes(3X)