1menu_attributes(3X)                                        menu_attributes(3X)
2
3
4

NAME

6       menu_attributes - color and attribute control for menus
7

SYNOPSIS

9       #include <menu.h>
10       int set_menu_fore(MENU *menu, chtype attr);
11       chtype menu_fore(const MENU *menu);
12       int set_menu_back(MENU *menu, chtype attr);
13       chtype menu_back(const MENU *menu);
14       int set_menu_grey(MENU *menu, chtype attr);
15       chtype menu_grey(const MENU *menu);
16       int set_menu_pad(MENU *menu, int pad);
17       int menu_pad(const MENU *menu);
18

DESCRIPTION

20       The  function set_menu_fore sets the foreground attribute of menu. This
21       is the highlight used for selected menu items.  menu_fore  returns  the
22       foreground attribute.  The default is A_STANDOUT.
23
24       The  function set_menu_back sets the background attribute of menu. This
25       is the highlight used for selectable (but not currently selected)  menu
26       items.   The  function menu_back returns the background attribute.  The
27       default is A_NORMAL.
28
29       The function set_menu_grey sets the grey attribute of menu. This is the
30       highlight  used  for un-selectable menu items in menus that permit more
31       than one selection.  The function menu_grey returns the grey attribute.
32       The default is A_UNDERLINE.
33
34       The  function  set_menu_pad  sets  the character used to fill the space
35       between the name and  description  parts  of  a  menu  item.   menu_pad
36       returns the given menu's pad character.  The default is a blank.
37

RETURN VALUE

39       These routines return one of the following:
40
41       E_OK The routine succeeded.
42
43       E_SYSTEM_ERROR
44            System error occurred (see errno).
45
46       E_BAD_ARGUMENT
47            Routine detected an incorrect or out-of-range argument.
48

SEE ALSO

50       curses(3X)  and  related  pages  whose names begin "menu_" for detailed
51       descriptions of the entry points.
52

NOTES

54       The  header  file  <menu.h>  automatically  includes  the  header  file
55       <curses.h>.
56

PORTABILITY

58       These  routines  emulate the System V menu library.  They were not sup‐
59       ported on Version 7 or BSD versions.
60

AUTHORS

62       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
63       Raymond.
64
65
66
67                                                           menu_attributes(3X)
Impressum