1menu_pattern(3CURSES) Curses Library Functions menu_pattern(3CURSES)
2
3
4
6 menu_pattern, set_menu_pattern - set and get menus pattern match buffer
7
9 cc [ flag... ] file... -lmenu -lcurses [ library... ]
10 #include <menu.h>
11
12
13
14 char *menu_pattern(MENU *menu);
15
16
17 int set_menu_pattern(MENU *menu, char *pat);
18
19
21 Every menu has a pattern buffer to match entered data with menu items.
22 set_menu_pattern() sets the pattern buffer to pat and tries to find the
23 first item that matches the pattern. If it does, the matching item
24 becomes the current item. If not, the current item does not change.
25 menu_pattern() returns the string in the pattern buffer of menu.
26
28 menu_pattern() returns NULL on error. set_menu_pattern() returns one of
29 the following:
30
31 E_OK The routine returned successfully.
32
33
34 E_SYSTEM_ERROR System error.
35
36
37 E_BAD_ARGUMENT An incorrect argument was passed to the routine.
38
39
40 E_NO_MATCH The character failed to match.
41
42
44 See attributes(5) for descriptions of the following attributes:
45
46
47
48
49 ┌─────────────────────────────┬─────────────────────────────┐
50 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
51 ├─────────────────────────────┼─────────────────────────────┤
52 │MT-Level │Unsafe │
53 └─────────────────────────────┴─────────────────────────────┘
54
56 curses(3CURSES), menus(3CURSES), attributes(5)
57
59 The header <menu.h> automatically includes the headers <eti.h> and
60 <curses.h>.
61
62
63
64SunOS 5.11 31 Dec 1996 menu_pattern(3CURSES)