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
13       int set_menu_fore(MENU *menu, chtype attr);
14       chtype menu_fore(const MENU *menu);
15
16       int set_menu_back(MENU *menu, chtype attr);
17       chtype menu_back(const MENU *menu);
18
19       int set_menu_grey(MENU *menu, chtype attr);
20       chtype menu_grey(const MENU *menu);
21
22       int set_menu_pad(MENU *menu, int pad);
23       int menu_pad(const MENU *menu);
24

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

56       curses(3X) and related pages whose names begin “menu_” for detailed de‐
57       scriptions of the entry points.
58

NOTES

60       The  header  file  <menu.h>  automatically  includes  the  header  file
61       <curses.h>.
62

PORTABILITY

64       These  routines  emulate the System V menu library.  They were not sup‐
65       ported on Version 7 or BSD versions.
66

AUTHORS

68       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
69       Raymond.
70
71
72
73                                                           menu_attributes(3X)
Impressum