1menu_attributes(3CURSES) Curses Library Functions menu_attributes(3CURSES)
2
3
4
6 menu_attributes, set_menu_fore, menu_fore, set_menu_back, menu_back,
7 set_menu_grey, menu_grey, set_menu_pad, menu_pad - control menus dis‐
8 play attributes
9
11 cc [ flag... ] file... -lmenu -lcurses [ library... ]
12 #include <menu.h>
13
14 int set_menu_fore(MENU *menu, chtype attr);
15
16
17 chtype menu_fore(MENU *menu);
18
19
20 int set_menu_back(MENU *menu, chtype attr);
21
22
23 chtype menu_back(MENU *menu);
24
25
26 int set_menu_grey(MENU*menu, chtype attr);
27
28
29 chtype menu_grey(MENU *menu);
30
31
32 int set_menu_pad(MENU *menu, int pad);
33
34
35 int menu_pad(MENU *menu);
36
37
39 set_menu_fore() sets the foreground attribute of menu — the display
40 attribute for the current item (if selectable) on single-valued menus
41 and for selected items on multi-valued menus. This display attribute is
42 a curses library visual attribute. menu_fore() returns the foreground
43 attribute of menu.
44
45
46 set_menu_back() sets the background attribute of menu — the display
47 attribute for unselected, yet selectable, items. This display attribute
48 is a curses library visual attribute.
49
50
51 set_menu_grey() sets the grey attribute of menu — the display attribute
52 for nonselectable items in multi-valued menus. This display attribute
53 is a curses library visual attribute. menu_grey() returns the grey
54 attribute of menu.
55
56
57 The pad character is the character that fills the space between the
58 name and description of an item. set_menu_pad() sets the pad character
59 for menu to pad. menu_pad() returns the pad character of menu.
60
62 These routines return one of the following:
63
64 E_OK The routine returned successfully.
65
66
67 E_SYSTEM_ERROR System error.
68
69
70 E_BAD_ARGUMENT An incorrect argument was passed to the routine.
71
72
74 See attributes(5) for descriptions of the following attributes:
75
76
77
78
79 ┌─────────────────────────────┬─────────────────────────────┐
80 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
81 ├─────────────────────────────┼─────────────────────────────┤
82 │MT-Level │Unsafe │
83 └─────────────────────────────┴─────────────────────────────┘
84
86 curses(3CURSES), menus(3CURSES), attributes(5)
87
89 The header <menu.h> automatically includes the headers <eti.h> and
90 <curses.h>.
91
92
93
94SunOS 5.11 31 Dec 1996 menu_attributes(3CURSES)