MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


X/Open Curses Library Functions                attrget(3XCURSES)



NAME
     attrget, attroff, attron, attrset, colorset, wattrget,
     wattroff,  wattron, wattrset, wcolorset - control window
     attributes

SYNOPSIS
     cc [ flag... ] file... -I /usr/xpg4/include  -L  /usr/xpg4/lib \
      -R  /usr/xpg4/lib  -lcurses  [ library... ]

     c89 [ flag... ] file... -lcurses [ library... ]

     #include 

     int attrget(attrt *attrs, short *color, void *opts);


     int attroff(attrt attrs, void *opts);


     int attron(attrt attrs, void *opts);


     int attrset(attrt attrs, short color, void *opts);


     int colorset(short *color, void *opts);


     int wattrget(WINDOW *win, attrt attrs, short *color, void *opts);


     int wattroff(WINDOW *win, attrt attrs, void *opts);


     int wattron(WINDOW *win, attrt attrs, void *opts);


     int wattrset(WINDOW *win, attrt attrs, short color, void *opts);


     int wcolorset(WINDOW *win, short color, void *opts);


DESCRIPTION
     The attrget() function retrieves the current  rendition  of
     stdscr.  The wattrget() function retrieves the current ren-
     dition of window  win.  If attrs or color is a null pointer,
     no information is retrieved.


     The  attroff()  and  attron()  functions  unset  and  set,
     respectively,  the  specified  window  attributes of stdscr.



SunOS 5.11           Last change: 5 Jun 2002                    1






X/Open Curses Library Functions                attrget(3XCURSES)



     These functions only affect the attributes specified; attri-
     butes that existed before the call are retained.


     The wattroff() and wattron() functions unset  or  set  the
     specified attributes for window win.


     The attrset() and wattrset() functions change  the  rendi-
     tion of stdscr and win; the old values are not retained.


     The colorset() and wcolorset() functions  set  the  window
     color of stdscr and win to color.


     The attributes and color pairs that can be used  are  speci-
     fied in the  Attributes, Color Pairs, and Renditions section
     of the  curses(3XCURSES) man page.

PARAMETERS
     attrs    Is a pointer to the foreground window attributes to
              be set or unset.


     color    Is a pointer to a color pair number .


     opts     Is reserved for future use.


     win      Is a pointer  to  the  window  in  which  attribute
              changes are to be made.


RETURN VALUES
     These functions always return OK.

ERORS
     None.

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











SunOS 5.11           Last change: 5 Jun 2002                    2






X/Open Curses Library Functions                attrget(3XCURSES)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Standard                    
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     addwch(3XCURSES),  addnwstr(3XCURSES),   attroff(3XCURSES),
     bkgrndset(3XCURSES), curses(3XCURSES), initcolor(3XCURSES),
     libcurses(3XCURSES),  startcolor(3XCURSES),  attributes(5),
     standards(5)









































SunOS 5.11           Last change: 5 Jun 2002                    3



OpenSolaris man pages main menu

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