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

NAME

6       set_menu_opts,  menu_opts_on,  menu_opts_off,  menu_opts  - set and get
7       menu options
8

SYNOPSIS

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

DESCRIPTION

17       The function set_menu_opts sets all the given menu's option bits  (menu
18       option bits may be logically-OR'ed together).
19
20       The  function  menu_opts_on  turns on the given option bits, and leaves
21       others alone.
22
23       The function menu_opts_off turns off the given option bits, and  leaves
24       others alone.
25
26       The function menu_opts returns the menu's current option bits.
27
28       The following options are defined (all are on by default):
29
30       O_ONEVALUE
31            Only one item can be selected for this menu.
32
33       O_SHOWDESC
34            Display the item descriptions when the menu is posted.
35
36       O_ROWMAJOR
37            Display the menu in row-major order.
38
39       O_IGNORECASE
40            Ignore the case when pattern-matching.
41
42       O_SHOWMATCH
43            Move the cursor to within the item name while pattern-matching.
44
45       O_NONCYCLIC
46            Don't  wrap  around  next-item  and previous-item, requests to the
47            other end of the menu.
48
49       O_MOUSE_MENU
50            If user clicks with the mouse and it does not  fall  on  the  cur‐
51            rently active menu, push KEY_MOUSE and the MEVENT data back on the
52            queue to allow processing in another part of the calling program.
53

RETURN VALUE

55       Except for menu_opts, each routine returns one of the following:
56
57       E_OK The routine succeeded.
58
59       E_SYSTEM_ERROR
60            System error occurred (see errno(3)).
61
62       E_POSTED
63            The menu is already posted.
64

SEE ALSO

66       curses(3X), menu(3X).
67

NOTES

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

PORTABILITY

73       These  routines  emulate the System V menu library.  They were not sup‐
74       ported on Version 7 or BSD versions.
75

AUTHORS

77       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
78       Raymond.
79
80
81
82                                                                 menu_opts(3X)
Impressum