MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Curses Library Functions           formfieldattributes(3CURSES)



NAME
     formfieldattributes,      setfieldfore,      fieldfore,
     setfieldback,  fieldback, setfieldpad, fieldpad - for-
     mat the general display attributes of forms

SYNOPSIS
     cc [ flag... ] file... -lform  -lcurses  [ library... ]
     #include 

     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 VALUES
     fieldfore(), fieldback(), and fieldpad()  return  default
     values  if  field is NUL. If field is not NUL and is not a
     valid FIELD pointer, the return value from these routines is
     undefined.






SunOS 5.11          Last change: 31 Dec 1996                    1






Curses Library Functions           formfieldattributes(3CURSES)



     setfieldfore(),  setfieldback(),   and   setfieldpad()
     return one of the following:

     EOK              The function returned successfully.


     ESYSTEMEROR    System error.


     EBADARGUMENT    An argument is incorrect.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     curses(3CURSES), forms(3CURSES), attributes(5)

NOTES
     The  header    automatically  includes  the  headers
      and .
























SunOS 5.11          Last change: 31 Dec 1996                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™