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

NAME

6       menu_back,     menu_fore,     menu_grey,    menu_pad,    set_menu_back,
7       set_menu_fore, set_menu_grey, set_menu_pad - color and  attribute  con‐
8       trol for menus
9

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

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

NOTES

56       The  header  file  <menu.h>  automatically  includes  the  header  file
57       <curses.h>.
58

PORTABILITY

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

AUTHORS

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