Deleted Added
full compact
menu_attributes.3x (97049) menu_attributes.3x (166124)
1'\" t
2.\"***************************************************************************
1'\" t
2.\"***************************************************************************
3.\" Copyright (c) 1998,2002 Free Software Foundation, Inc. *
3.\" Copyright (c) 1998-2002,2006 Free Software Foundation, Inc. *
4.\" *
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: *

--- 10 unchanged lines hidden (view full) ---

22.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23.\" *
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 *
27.\" authorization. *
28.\"***************************************************************************
29.\"
4.\" *
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: *

--- 10 unchanged lines hidden (view full) ---

22.\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
23.\" *
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 *
27.\" authorization. *
28.\"***************************************************************************
29.\"
30.\" $Id: menu_attributes.3x,v 1.7 2002/01/19 22:49:06 tom Exp $
30.\" $Id: menu_attributes.3x,v 1.9 2006/11/04 17:12:00 tom Exp $
31.TH menu_attributes 3X ""
32.SH NAME
33\fBmenu_attributes\fR - color and attribute control for menus
34.SH SYNOPSIS
35\fB#include <menu.h>\fR
36.br
37int set_menu_fore(MENU *menu, chtype attr);
38.br

--- 11 unchanged lines hidden (view full) ---

50.br
51int menu_pad(const MENU *menu);
52.br
53.SH DESCRIPTION
54The function \fBset_menu_fore\fR sets the foreground attribute of
55\fImenu\fR. This is the highlight used for selected menu items.
56\fBmenu_fore\fR returns the foreground attribute. The default
57is \fBA_STANDOUT\fR.
31.TH menu_attributes 3X ""
32.SH NAME
33\fBmenu_attributes\fR - color and attribute control for menus
34.SH SYNOPSIS
35\fB#include <menu.h>\fR
36.br
37int set_menu_fore(MENU *menu, chtype attr);
38.br

--- 11 unchanged lines hidden (view full) ---

50.br
51int menu_pad(const MENU *menu);
52.br
53.SH DESCRIPTION
54The function \fBset_menu_fore\fR sets the foreground attribute of
55\fImenu\fR. This is the highlight used for selected menu items.
56\fBmenu_fore\fR returns the foreground attribute. The default
57is \fBA_STANDOUT\fR.
58
58.PP
59The function \fBset_menu_back\fR sets the background attribute of
60\fImenu\fR. This is the highlight used for selectable (but not currently
61selected) menu items. The function \fBmenu_back\fR returns the background
62attribute. The default is \fBA_NORMAL\fR.
59The function \fBset_menu_back\fR sets the background attribute of
60\fImenu\fR. This is the highlight used for selectable (but not currently
61selected) menu items. The function \fBmenu_back\fR returns the background
62attribute. The default is \fBA_NORMAL\fR.
63
63.PP
64The function \fBset_menu_grey\fR sets the grey attribute of \fImenu\fR. This is
65the highlight used for un-selectable menu items in menus that permit more than
66one selection. The function \fBmenu_grey\fR returns the grey attribute.
67The default is \fBA_UNDERLINE\fR.
64The function \fBset_menu_grey\fR sets the grey attribute of \fImenu\fR. This is
65the highlight used for un-selectable menu items in menus that permit more than
66one selection. The function \fBmenu_grey\fR returns the grey attribute.
67The default is \fBA_UNDERLINE\fR.
68
68.PP
69The function \fBset_menu_pad\fR sets the character used to fill the space
70between the name and description parts of a menu item. \fBmenu_pad\fR returns
71the given menu's pad character. The default is a blank.
72.SH RETURN VALUE
73These routines return one of the following:
74.TP 5
69The function \fBset_menu_pad\fR sets the character used to fill the space
70between the name and description parts of a menu item. \fBmenu_pad\fR returns
71the given menu's pad character. The default is a blank.
72.SH RETURN VALUE
73These routines return one of the following:
74.TP 5
75\fBE_OK\fR
75.B E_OK
76The routine succeeded.
77.TP 5
76The routine succeeded.
77.TP 5
78\fBE_SYSTEM_ERROR\fR
78.B E_SYSTEM_ERROR
79System error occurred (see \fBerrno\fR).
80.TP 5
79System error occurred (see \fBerrno\fR).
80.TP 5
81\fBE_BAD_ARGUMENT\fR
81.B E_BAD_ARGUMENT
82Routine detected an incorrect or out-of-range argument.
83.SH SEE ALSO
84\fBcurses\fR(3X) and related pages whose names begin "menu_" for detailed
85descriptions of the entry points.
86.SH NOTES
87The header file \fB<menu.h>\fR automatically includes the header file
88\fB<curses.h>\fR.
89.SH PORTABILITY
90These routines emulate the System V menu library. They were not supported on
91Version 7 or BSD versions.
92.SH AUTHORS
93Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
94S. Raymond.
95.\"#
96.\"# The following sets edit modes for GNU EMACS
97.\"# Local Variables:
98.\"# mode:nroff
99.\"# fill-column:79
100.\"# End:
82Routine detected an incorrect or out-of-range argument.
83.SH SEE ALSO
84\fBcurses\fR(3X) and related pages whose names begin "menu_" for detailed
85descriptions of the entry points.
86.SH NOTES
87The header file \fB<menu.h>\fR automatically includes the header file
88\fB<curses.h>\fR.
89.SH PORTABILITY
90These routines emulate the System V menu library. They were not supported on
91Version 7 or BSD versions.
92.SH AUTHORS
93Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
94S. Raymond.
95.\"#
96.\"# The following sets edit modes for GNU EMACS
97.\"# Local Variables:
98.\"# mode:nroff
99.\"# fill-column:79
100.\"# End: