4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>menu_opts</B> - set and get menu options
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><menu.h></B>
14 int set_menu_opts(MENU *menu, OPTIONS opts);
15 int menu_opts_on(MENU *menu, OPTIONS opts);
16 int menu_opts_off(MENU *menu, OPTIONS opts);
17 OPTIONS menu_opts(const MENU *menu);
21 <H2>DESCRIPTION</H2><PRE>
22 The function <B>set_menu_opts</B> sets all the given menu's
23 option bits (menu option bits may be logically-OR'ed
26 The function <B>menu_opts_on</B> turns on the given option bits,
27 and leaves others alone.
29 The function <B>menu_opts_off</B> turns off the given option
30 bits, and leaves others alone.
32 The function <B>menu_opts</B> returns the menu's current option
35 The following options are defined (all are on by default):
38 Only one item can be selected for this menu.
41 Display the item descriptions when the menu is
45 Display the menu in row-major order.
48 Ignore the case when pattern-matching.
51 Move the cursor to within the item name while pat-
55 Don't wrap around next-item and previous-item,
56 requests to the other end of the menu.
60 <H2>RETURN VALUE</H2><PRE>
61 Except for <B>menu_opts</B>, each routine returns one of the fol-
64 <B>E_OK</B> The routine succeeded.
68 System error occurred (see <B>errno</B>).
71 The menu is already posted.
75 <H2>SEE ALSO</H2><PRE>
76 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="menu.3x.html">menu(3x)</A></B>.
81 The header file <B><menu.h></B> automatically includes the header
82 file <B><curses.h></B>.
86 <H2>PORTABILITY</H2><PRE>
87 These routines emulate the System V menu library. They
88 were not supported on Version 7 or BSD versions.
93 Juergen Pfeifer. Manual pages and adaptation for new
94 curses by Eric S. Raymond.
132 Man(1) output converted with
133 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>