menuattributes(3X) menuattributes(3X)
NAME
menuattributes - color and attribute control for menus
SYNOPSIS
##include <>
int setmenufore(MENU *menu, chtype attr);
chtype menufore(const MENU *menu);
int setmenuback(MENU *menu, chtype attr);
chtype menuback(const MENU *menu);
int setmenugrey(MENU *menu, chtype attr);
chtype menugrey(const MENU *menu);
int setmenupad(MENU *menu, int pad);
int menupad(const MENU *menu);
DESCRIPTION
The function setmenufore sets the foreground attribute of menu. This
is the highlight used for selected menu items. menufore returns the
foreground attribute. The default is ASTANDOUT.
The function setmenuback sets the background attribute of menu. This
is the highlight used for selectable (but not currently selected) menu
items. The function menuback returns the background attribute. The
default is ANORMAL.
The function setmenugrey sets the grey attribute of menu. This is the
highlight used for un-selectable menu items in menus that permit more
than one selection. The function menugrey returns the grey attribute.
The default is AUNDERLINE.
The function setmenupad sets the character used to fill the space
between the name and description parts of a menu item. menupad
returns the given menu's pad character. The default is a blank.
RETURN VALUE
These routines return one of the following:
EOK The routine succeeded.
ESYSTEMEROR
System error occurred (see errno).
EBADARGUMENT
Routine detected an incorrect or out-of-range argument.
SEE ALSO
curses(3X) and related pages whose names begin "menu" for detailed
descriptions of the entry points.
NOTES
The header file <> automatically includes the header file
<>.
PORTABILITY
These routines emulate the System V menu library. They were not sup-
ported on Version 7 or BSD versions.
AUTHORS
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
Raymond.
menuattributes(3X)
|