formfieldattributes(3X) formfieldattributes(3X)
NAME
formfieldattributes - color and attribute control for form fields
SYNOPSIS
##include <>
int setfieldfore(FIELD *field, chtype attr);
chtype fieldfore(const FIELD *field);
int setfieldback(FIELD *field, chtype attr);
chtype fieldback(const FIELD *field);
int setfieldpad(FIELD *field, int pad);
int fieldpad(const FIELD *field);
DESCRIPTION
The function setfieldfore sets the foreground attribute of field.
This is the highlight used to display the field contents. The function
fieldfore returns the foreground attribute. The default is ASTAND-
OUT.
The function setfieldback sets the background attribute of form. This
is the highlight used to display the extent fields in the form. The
function fieldback returns the background attribute. The default is
ANORMAL.
The function setfieldpad sets the character used to fill the field.
The function fieldpad returns the given form's pad character. The
default is a blank.
RETURN VALUE
These routines return one of the following:
EOK The routine succeeded.
ESYSTEMEROR
System error occurred (see errno).
EBADARGUMENT
Routine detected an incorrect or out-of-range argument.
SEE ALSO
curses(3X) and related pages whose names begin "form" for detailed
descriptions of the entry points.
NOTES
The header file <> automatically includes the header file
<>.
PORTABILITY
These routines emulate the System V forms library. They were not sup-
ported on Version 7 or BSD versions.
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
Raymond.
formfieldattributes(3X)
|