attributes


HOME

attributes

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO
NOTES
PORTABILITY
AUTHORS

NAME

menu_attributes − color and attribute control for menus

SYNOPSIS

#include <menu.h>
int set_menu_fore(MENU *menu, chtype attr);
chtype menu_fore(const MENU *menu);
int set_menu_back(MENU *menu, chtype attr);
chtype menu_back(const MENU *menu);
int set_menu_grey(MENU *menu, chtype attr);
chtype menu_grey(const MENU *menu);
int set_menu_pad(MENU *menu, int pad);
int menu_pad(const MENU *menu);

DESCRIPTION

The function set_menu_fore sets the foreground attribute of menu. This is the highlight used for selected menu items. menu_fore returns the foreground attribute. The default is A_REVERSE.

The function set_menu_back sets the background attribute of menu. This is the highlight used for selectable (but not currently selected) menu items. The function menu_back returns the background attribute. The default is A_NORMAL.

The function set_menu_grey 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 menu_grey returns the grey attribute. The default is A_UNDERLINE.

The function set_menu_pad sets the character used to fill the space between the name and description parts of a menu item. menu_pad returns the given menu’s pad character. The default is a blank.

RETURN VALUE

These routines return one of the following:

E_OK

The routine succeeded.

E_SYSTEM_ERROR

System error occurred (see errno).

E_BAD_ARGUMENT

Routine detected an incorrect or out-of-range argument.

SEE ALSO

ncurses(3NCURSES) and related pages whose names begin "menu_" for detailed descriptions of the entry points.

NOTES

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

PORTABILITY

These routines emulate the System V menu library. They were not supported on Version 7 or BSD versions.

AUTHORS

Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.




More Linux Commands

manpages/glFogf.3gl.html
glFogf(3gl) - specify fog parameters - Linux manual page....
Fog is initially disabled. While enabled, fog affects rasterized geometry, bitmaps, and pixel blocks, but not buffer clear operations. To enable and disable fog

manpages/xrx.1.html
xrx(1) - RX helper program (Commands - Linux manual page)...
The helper program may be used with any Web browser to interpret documents in the RX MIME type format and start remote applications. xrx reads in the RX documen

manpages/XtLastEventProcessed.3.html
XtLastEventProcessed(3) - last event, last timestamp process
XtLastEventProcessed returns the last event passed to XtDispatchEvent for the specified display and NULL if there has been no event. The client must not modify

manpages/ccosf.3.html
ccosf(3) - complex cosine function - Linux manual page......
The complex cosine function is defined as: ccos(z) = (exp(i * z) + exp(-i * z)) / 2 VERSIONS These functions first appeared in glibc in version 2.1. CONFORMING

manpages/getpwent_r.3.html
getpwent_r(3) - get passwd file entry reentrantly (ManPage)
The functions getpwent_r() and fgetpwent_r() are the reentrant versions of getpwent(3) and fgetpwent(3). The former reads the next passwd entry from the stream

manpages/vfscanf.3.html
vfscanf(3) - input format conversion - Linux manual page....
The scanf() family of functions scans input according to format as described below. This format may contain conversion specifications; the results from such con

manpages/gnutls_x509_crt_get_raw_issuer_dn.3.html
gnutls_x509_crt_get_raw_issuer_dn(3) - API function.........
gnutls_x509_crt_get_raw_issuer_dn.3 - This function will return a pointer to the DER encoded DN structure and the length. RETURNS On success, GNUTLS_E_SUCCESS (

manpages/Tk_RedrawImage.3.html
Tk_RedrawImage(3) - use an image in a widget (Man Page).....
These procedures are invoked by widgets that wish to display images. Tk_GetImage is invoked by a widget when it first decides to display an image. name gives th

manpages/tc-sfq.8.html
tc-sfq(8) - Stochastic Fairness Queueing - Linux man page...
Stochastic Fairness Queueing is a classless queueing discipline available for traffic control with the tc(8) command. SFQ does not shape traffic but only schedu

manpages/XUngrabKeyboard.3.html
XUngrabKeyboard(3) - grab the keyboard - Linux manual page
The XGrabKeyboard function actively grabs control of the keyboard and generates FocusIn and FocusOut events. Further key events are reported only to the grabbin

manpages/msgget.2.html
msgget(2) - get a message queue identifier - Linux man page
The msgget() system call returns the System V message queue identifier associated with the value of the key argument. A new message queue is created if key has

manpages/pnmsmooth.1.html
pnmsmooth(1) - smooth out an image - Linux manual page......
This program is part of Netpbm(1) pnmsmooth smoothes out an image by replacing each pixel with the average of its width X height neighbors. It is implemented as





We can't live, work or learn in freedom unless the software we use is free.