2 .\"***************************************************************************
3 .\" Copyright (c) 1998-2018,2019 Free Software Foundation, Inc. *
5 .\" Permission is hereby granted, free of charge, to any person obtaining a *
6 .\" copy of this software and associated documentation files (the *
7 .\" "Software"), to deal in the Software without restriction, including *
8 .\" without limitation the rights to use, copy, modify, merge, publish, *
9 .\" distribute, distribute with modifications, sublicense, and/or sell *
10 .\" copies of the Software, and to permit persons to whom the Software is *
11 .\" furnished to do so, subject to the following conditions: *
13 .\" The above copyright notice and this permission notice shall be included *
14 .\" in all copies or substantial portions of the Software. *
16 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
17 .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
19 .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
20 .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
21 .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
22 .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
24 .\" Except as contained in this notice, the name(s) of the above copyright *
25 .\" holders shall not be used in advertising or otherwise to promote the *
26 .\" sale, use or other dealings in this Software without prior written *
28 .\"***************************************************************************
30 .\" $Id: menu_attributes.3x,v 1.15 2019/01/20 20:32:23 tom Exp $
31 .TH menu_attributes 3X ""
40 \fBset_menu_pad\fR \- color and attribute control for menus
42 \fB#include <menu.h>\fR
44 int set_menu_fore(MENU *menu, chtype attr);
46 chtype menu_fore(const MENU *menu);
48 int set_menu_back(MENU *menu, chtype attr);
50 chtype menu_back(const MENU *menu);
52 int set_menu_grey(MENU *menu, chtype attr);
54 chtype menu_grey(const MENU *menu);
56 int set_menu_pad(MENU *menu, int pad);
58 int menu_pad(const MENU *menu);
61 The function \fBset_menu_fore\fR sets the foreground attribute of
62 \fImenu\fR. This is the highlight used for selected menu items.
63 \fBmenu_fore\fR returns the foreground attribute.
67 The function \fBset_menu_back\fR sets the background attribute of
68 \fImenu\fR. This is the highlight used for selectable (but not currently
70 The function \fBmenu_back\fR returns the background
72 The default is \fBA_NORMAL\fR.
74 The function \fBset_menu_grey\fR sets the grey attribute of \fImenu\fR. This is
75 the highlight used for un-selectable menu items in menus that permit more than
77 The function \fBmenu_grey\fR returns the grey attribute.
78 The default is \fBA_UNDERLINE\fR.
80 The function \fBset_menu_pad\fR sets the character used to fill the space
81 between the name and description parts of a menu item.
82 \fBmenu_pad\fR returns
83 the given menu's pad character.
84 The default is a blank.
86 These routines return one of the following:
89 The routine succeeded.
92 System error occurred (see \fBerrno\fR(3)).
95 Routine detected an incorrect or out-of-range argument.
97 \fBcurses\fR(3X) and related pages whose names begin "menu_" for detailed
98 descriptions of the entry points.
100 The header file \fB<menu.h>\fR automatically includes the header file
103 These routines emulate the System V menu library.
104 They were not supported on
105 Version 7 or BSD versions.
108 Manual pages and adaptation for new curses by Eric S. Raymond.