DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

form_field_attributes(S-osr5)


form_field_attributes: set_field_fore, field_fore, set_field_back, field_back, set_field_pad, field_pad -- format the general display attributes of forms

Syntax

cc ... -lform -lcurses

#include <form.h>

int set_field_fore(FIELD *field, chtype attr); chtype field_fore(FIELD *field); int set_field_back(FIELD *field, chtype attr); chtype field_back(FIELD *field); int set_field_pad(FIELD *field, int pad); int field_pad(FIELD *field);

Description

set_field_fore(S-osr5) sets the foreground attribute of field. The foreground attribute is the low-level curses(S-osr5) display attribute used to display the field contents. field_fore(S-osr5) returns the foreground attribute of field.

set_field_back(S-osr5) sets the background attribute of field. The background attribute is the low-level curses( ) display attribute used to display the extent of the field. field_back(S-osr5) returns the background attribute of field.

set_field_pad(S-osr5) sets the pad character of field to pad. The pad character is the character used to fill within the field. field_pad(S-osr5) returns the pad character of field.

Return values

field_fore( ), field_back( ) and field_pad( ) 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.

set_field_fore( ), set_field_back( ) and set_field_pad( ) return one of the following:

E_OK - The function returned successfully.
E_SYSTEM_ERROR - System error.
E_BAD_ARGUMENT - An argument is incorrect.

 E_OK            -  The function returned successfully.
 E_SYSTEM_ERROR  -  System error.
 E_BAD_ARGUMENT  -  An argument is incorrect.

Warning

The header file form.h automatically includes the header files eti.h and curses.h.

Files


/usr/lib/libform.a
the library

See also

curses(S-osr5), forms(S-osr5)

Standards conformance

set_field_fore(S-osr5), field_fore(S-osr5), set_field_back(S-osr5), field_back(S-osr5), set_field_pad(S-osr5), and field_pad(S-osr5) are not part of any currently supported standard; they were developed by UNIX System Laboratories, Inc. and are maintained by The SCO Group.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005