1form_field_attributes(3X)                            form_field_attributes(3X)
2
3
4

NAME

6       form_field_attributes - color and attribute control for form fields
7

SYNOPSIS

9       #include <form.h>
10
11       int set_field_fore(FIELD *field, chtype attr);
12       chtype field_fore(const FIELD *field);
13
14       int set_field_back(FIELD *field, chtype attr);
15       chtype field_back(const FIELD *field);
16
17       int set_field_pad(FIELD *field, int pad);
18       int field_pad(const FIELD *field);
19

DESCRIPTION

21       The  function  set_field_fore  sets  the foreground attribute of field.
22       This is the highlight used to display the field contents.  The function
23       field_fore  returns  the foreground attribute.  The default is A_STAND‐
24       OUT.
25
26       The function set_field_back sets the background attribute of form. This
27       is  the  highlight  used to display the extent fields in the form.  The
28       function field_back returns the background attribute.  The  default  is
29       A_NORMAL.
30
31       The  function  set_field_pad sets the character used to fill the field.
32       The function field_pad returns the given form's pad character.  The de‐
33       fault is a blank.
34

RETURN VALUE

36       These routines return one of the following:
37
38       E_OK The routine succeeded.
39
40       E_BAD_ARGUMENT
41            Routine detected an incorrect or out-of-range argument.
42
43       E_SYSTEM_ERROR
44            System error occurred (see errno(3)).
45

SEE ALSO

47       curses(3X) and related pages whose names begin “form_” for detailed de‐
48       scriptions of the entry points.
49

NOTES

51       The  header  file  <form.h>  automatically  includes  the  header  file
52       <curses.h>.
53

PORTABILITY

55       These  routines emulate the System V forms library.  They were not sup‐
56       ported on Version 7 or BSD versions.
57

AUTHORS

59       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
60       Raymond.
61
62
63
64                                                     form_field_attributes(3X)
Impressum