| MENU_ATTRIBUTES(3) | Library Functions Manual | MENU_ATTRIBUTES(3) |
menu_back,
menu_fore, menu_grey,
menu_pad, set_menu_back,
set_menu_fore,
set_menu_grey, set_menu_pad
— get and set menu attributes
Curses Menu Library (libmenu, -lmenu)
#include
<menu.h>
char
menu_back(MENU
*menu);
char
menu_fore(MENU
*menu);
char
menu_grey(MENU
*menu);
int
menu_pad(MENU
*menu);
int
set_menu_back(MENU
*menu, char
attr);
int
set_menu_fore(MENU
*menu, char
attr);
int
set_menu_grey(MENU
*menu, char
attr);
int
set_menu_pad(MENU
*menu, int
pad);
The
menu_back()
function returns the value of the background attribute for the menu passed.
This attribute is set by the
set_menu_back()
call. The
menu_fore()
function returns the value of the foreground character attribute for the
menu passed. This attribute is set by the
set_menu_fore()
function. The
menu_grey()
function returns the value of the grey or unselectable character attribute
for the menu passed. This attribute is set by the
set_menu_grey()
function. The
menu_pad()
function returns the padding character that will be used between the item
name and its description. The value of the pad character is set by the
set_menu_pad()
function.
The functions return one of the following error values:
E_OKE_SYSTEM_ERRORE_BAD_ARGUMENTE_POSTEDE_CONNECTEDE_BAD_STATEE_NO_ROOME_NOT_POSTEDE_UNKNOWN_COMMANDE_NO_MATCHE_NOT_SELECTABLEE_NOT_CONNECTEDE_REQUEST_DENIEDThe header <menu.h> automatically includes both <curses.h> and <eti.h>.
| September 10, 1999 | NetBSD 11.0 |