1menu_mark(3X) menu_mark(3X)
2
3
4
6 set_menu_mark, menu_mark - get and set the menu mark string
7
9 #include <menu.h>
10 int set_menu_mark(MENU *menu, const char *mark);
11 const char *menu_mark(const MENU *menu);
12
14 In order to make menu selections visible on older terminals without
15 highlighting or color capability, the menu library marks selected items
16 in a menu with a prefix string.
17
18 The function set_menu_mark sets the mark string for the given menu.
19 Calling set_menu_mark with a null menu item will abolish the mark
20 string. Note that changing the length of the mark string for a menu
21 while the menu is posted is likely to produce unhelpful behavior.
22
23 The default string is "-" (a dash). Calling set_menu_mark with a non-
24 NULL menu argument will change this default.
25
26 The function menu_mark returns the menu's mark string (or NULL if there
27 is none).
28
30 The function menu_mark returns a pointer (which may be NULL). It does
31 not set errno.
32
33 The function set_menu_mark may return the following error codes:
34
35 E_OK The routine succeeded.
36
37 E_BAD_ARGUMENT
38 Routine detected an incorrect or out-of-range argument.
39
40 E_SYSTEM_ERROR
41 System error occurred (see errno(3)).
42
44 curses(3X), menu(3X).
45
47 The header file <menu.h> automatically includes the header file
48 <curses.h>.
49
51 These routines emulate the System V menu library. They were not sup‐
52 ported on Version 7 or BSD versions.
53
55 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
56 Raymond.
57
58
59
60 menu_mark(3X)