MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Curses Library Functions                 menuattributes(3CURSES)



NAME
     menuattributes,  setmenufore,  menufore,  setmenuback,
     menuback,  setmenugrey, menugrey, setmenupad, menupad
     - control menus display attributes

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

     int setmenufore(MENU *menu, chtype attr);


     chtype menufore(MENU *menu);


     int setmenuback(MENU *menu, chtype attr);


     chtype menuback(MENU *menu);


     int setmenugrey(MENU*menu, chtype attr);


     chtype menugrey(MENU *menu);


     int setmenupad(MENU *menu, int pad);


     int menupad(MENU *menu);


DESCRIPTION
     setmenufore() sets the foreground attribute of menu -  the
     display  attribute  for  the current item (if selectable) on
     single-valued menus and for selected items  on  multi-valued
     menus.  This  display  attribute  is a curses library visual
     attribute. menufore() returns the foreground  attribute  of
     menu.


     setmenuback() sets the background attribute of menu -  the
     display  attribute  for  unselected,  yet selectable, items.
     This display attribute is a curses library visual attribute.


     setmenugrey() sets  the  grey  attribute  of  menu  -  the
     display  attribute  for  nonselectable items in multi-valued
     menus. This display attribute is  a  curses  library  visual
     attribute. menugrey() returns the grey attribute of menu.




SunOS 5.11          Last change: 31 Dec 1996                    1






Curses Library Functions                 menuattributes(3CURSES)



     The pad character is the  character  that  fills  the  space
     between  the name and description of an item. setmenupad()
     sets the pad character for menu to pad.  menupad()  returns
     the pad character of menu.

RETURN VALUES
     These routines return one of the following:

     EOK               The routine returned successfully.


     ESYSTEMEROR     System error.


     EBADARGUMENT     An incorrect argument was passed  to  the
                        routine.


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



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     MT-Level                     Unsafe                      
    


SEE ALSO
     curses(3CURSES), menus(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 ™