form_field_attributes(3X) UNIX System V form_field_attributes(3X)
NAME
formfieldattributes: setfieldfore, fieldfore, setfieldback,
fieldback, setfieldpad, fieldpad - format 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 attribute 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 attribute 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 undefined.
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)
10/89 Page 1