1menu_opts(3X)                                                    menu_opts(3X)
2
3
4

NAME

6       menu_opts - set and get menu options
7

SYNOPSIS

9       #include <menu.h>
10       int set_menu_opts(MENU *menu, Menu_Options opts);
11       int menu_opts_on(MENU *menu, Menu_Options opts);
12       int menu_opts_off(MENU *menu, Menu_Options opts);
13       Menu_Options menu_opts(const MENU *menu);
14

DESCRIPTION

16       The  function set_menu_opts sets all the given menu's option bits (menu
17       option bits may be logically-OR'ed together).
18
19       The function menu_opts_on turns on the given option  bits,  and  leaves
20       others alone.
21
22       The  function menu_opts_off turns off the given option bits, and leaves
23       others alone.
24
25       The function menu_opts returns the menu's current option bits.
26
27       The following options are defined (all are on by default):
28
29       O_ONEVALUE
30            Only one item can be selected for this menu.
31
32       O_SHOWDESC
33            Display the item descriptions when the menu is posted.
34
35       O_ROWMAJOR
36            Display the menu in row-major order.
37
38       O_IGNORECASE
39            Ignore the case when pattern-matching.
40
41       O_SHOWMATCH
42            Move the cursor to within the item name while pattern-matching.
43
44       O_NONCYCLIC
45            Don't wrap around next-item and  previous-item,  requests  to  the
46            other end of the menu.
47

RETURN VALUE

49       Except for menu_opts, each routine returns one of the following:
50
51       E_OK The routine succeeded.
52
53       E_SYSTEM_ERROR
54            System error occurred (see errno).
55
56       E_POSTED
57            The menu is already posted.
58

SEE ALSO

60       curses(3X), menu(3X).
61

NOTES

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

PORTABILITY

67       These routines emulate the System V menu library.  They were  not  sup‐
68       ported on Version 7 or BSD versions.
69

AUTHORS

71       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
72       Raymond.
73
74
75
76                                                                 menu_opts(3X)
Impressum