form_field_attribM
uI
tS
eC
s(
E3
LL
X)
ANEOUS LIBRARY FU
fN
oC
rT
mIO
fN
iS
eld_attributes(3X)
NAME
formfieldattributes: setfieldfore, fieldfore,
setfieldback, fieldback, setfieldpad, fieldpad - for-
mat the general display attributes of forms
SYNOPSIS
#include <form.h>
int setfieldfore(FIELD *field, chtype attr);
chtype fieldfore(FIELD *field);
int setfieldback(FIELD *field, chtype attr);
chtype fieldback(FIELD *field);
int setfieldpad(FIELD *field, int pad);
int fieldpad(FIELD *field);
DESCRIPTION
setfieldfore sets the foreground attribute of field. The
foreground attribute is the low-level curses display attri-
bute used to display the field contents. fieldfore returns
the foreground attribute of field.
setfieldback sets the background attribute of field. The
background attribute is the low-level curses display attri-
bute used to display the extent of the field. fieldback
returns the background attribute of field.
setfieldpad sets the pad character of field to pad. The
pad character is the character used to fill within the
field. fieldpad returns the pad character of field.
RETURN VALUE
fieldfore, fieldback and fieldpad return default values
if field is NULL. If field is not NULL and is not a valid
FIELD pointer, the return value from these routines is unde-
fined. setfieldfore, setfieldback and setfieldpad
return one of the following:
E_OK - The function returned successfully.
E_SYSTEM_ERROR - System error.
E_BAD_ARGUMENT - An argument is incorrect.
NOTES
The header file <form.h> automatically includes the header
files <eti.h> and <curses.h>.
SEE ALSO
curses(3X), forms(3X).
Last change: 1