4 <STRONG>menu_opts</STRONG> - set and get menu options
9 <STRONG>#include</STRONG> <STRONG><menu.h></STRONG>
10 int set_menu_opts(MENU *menu, OPTIONS opts);
11 int menu_opts_on(MENU *menu, OPTIONS opts);
12 int menu_opts_off(MENU *menu, OPTIONS opts);
13 OPTIONS menu_opts(const MENU *menu);
17 <H2>DESCRIPTION</H2><PRE>
18 The function <STRONG>set_menu_opts</STRONG> sets all the given menu's
19 option bits (menu option bits may be logically-OR'ed
22 The function <STRONG>menu_opts_on</STRONG> turns on the given option bits,
23 and leaves others alone.
25 The function <STRONG>menu_opts_off</STRONG> turns off the given option
26 bits, and leaves others alone.
28 The function <STRONG>menu_opts</STRONG> returns the menu's current option
31 The following options are defined (all are on by default):
34 Only one item can be selected for this menu.
37 Display the item descriptions when the menu is
41 Display the menu in row-major order.
44 Ignore the case when pattern-matching.
47 Move the cursor to within the item name while pat-
51 Don't wrap around next-item and previous-item,
52 requests to the other end of the menu.
56 <H2>RETURN VALUE</H2><PRE>
57 Except for <STRONG>menu_opts</STRONG>, each routine returns one of the fol-
60 <STRONG>E_OK</STRONG> The routine succeeded.
62 System error occurred (see <STRONG>errno</STRONG>).
64 <STRONG>E_POSTED</STRONG>
65 The menu is already posted.
69 <H2>SEE ALSO</H2><PRE>
70 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="menu.3x.html">menu(3X)</A></STRONG>.
75 The header file <STRONG><menu.h></STRONG> automatically includes the header
76 file <STRONG><curses.h></STRONG>.
80 <H2>PORTABILITY</H2><PRE>
81 These routines emulate the System V menu library. They
82 were not supported on Version 7 or BSD versions.
87 Juergen Pfeifer. Manual pages and adaptation for new
88 curses by Eric S. Raymond.