1menu_opts(3CURSES)         Curses Library Functions         menu_opts(3CURSES)
2
3
4

NAME

6       menu_opts,  set_menu_opts,  menu_opts_on,  menu_opts_off - menus option
7       routines
8

SYNOPSIS

10       cc [ flag... ] file... -lmenu  -lcurses  [ library... ]
11       #include <menu.h>
12
13       OPTIONS menu_opts(MENU *menu);
14
15
16       int set_menu_opts(MENU *menu, OPTIONS opts);
17
18
19       int menu_opts_on(MENU *menu, OPTIONS opts);
20
21
22       int menu_opts_off(MENU *menu, OPTIONS opts);
23
24

DESCRIPTION

26   Menu Options
27       set_menu_opts() turns on the named options for menu and turns  off  all
28       other options. Options are boolean values that can be OR-ed together.
29
30
31       menu_opts_on()  turns on the named options for menu; no other option is
32       changed.
33
34
35       menu_opts_off() turns off the named options for menu; no  other  option
36       is changed.
37
38
39       menu_opts() returns the current options of menu.
40
41
42       The following values can be OR'd together to create  opts.
43
44       O_ONEVALUE      Only one item can be selected from the menu.
45
46
47       O_SHOWDESC      Display the description of the items.
48
49
50       O_ROWMAJOR      Display the menu in row major order.
51
52
53       O_IGNORECASE    Ignore the case when pattern matching.
54
55
56       O_SHOWMATCH     Place  the  cursor  within  the  item name when pattern
57                       matching.
58
59
60       O_NONCYCLIC     Make certain menu driver requests non-cyclic.
61
62

RETURN VALUES

64       Except for menu_opts(), these routines return one of the following:
65
66       E_OK               The routine returned successfully.
67
68
69       E_SYSTEM_ERROR    System error.
70
71
72       E_POSTED          The menu is already posted.
73
74

ATTRIBUTES

76       See attributes(5) for descriptions of the following attributes:
77
78
79
80
81       ┌─────────────────────────────┬─────────────────────────────┐
82       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
83       ├─────────────────────────────┼─────────────────────────────┤
84       │MT-Level                     │Unsafe                       │
85       └─────────────────────────────┴─────────────────────────────┘
86

SEE ALSO

88       curses(3CURSES), menus(3CURSES), attributes(5)
89

NOTES

91       The header <menu.h> automatically includes  the  headers   <eti.h>  and
92       <curses.h>.
93
94
95
96SunOS 5.11                        31 Dec 1996               menu_opts(3CURSES)
Impressum