1menu_mark(3X)                                                    menu_mark(3X)
2
3
4

NAME

6       set_menu_mark, menu_mark - get and set the menu mark string
7

SYNOPSIS

9       #include <menu.h>
10
11       int set_menu_mark(MENU *menu, const char *mark);
12       const char *menu_mark(const MENU *menu);
13

DESCRIPTION

15       In  order  to  make  menu selections visible on older terminals without
16       highlighting or color capability, the menu library marks selected items
17       in a menu with a prefix string.
18
19       The  function  set_menu_mark  sets  the mark string for the given menu.
20       Calling set_menu_mark with a null  menu  item  will  abolish  the  mark
21       string.   Note  that  changing the length of the mark string for a menu
22       while the menu is posted is likely to produce unhelpful behavior.
23
24       The default string is "-" (a dash).  Calling set_menu_mark with a  non-
25       NULL menu argument will change this default.
26
27       The function menu_mark returns the menu's mark string (or NULL if there
28       is none).
29

RETURN VALUE

31       The function menu_mark returns a pointer (which may be NULL).  It  does
32       not set errno.
33
34       The function set_menu_mark may return the following error codes:
35
36       E_OK The routine succeeded.
37
38       E_BAD_ARGUMENT
39            Routine detected an incorrect or out-of-range argument.
40
41       E_SYSTEM_ERROR
42            System error occurred (see errno(3)).
43

SEE ALSO

45       curses(3X), menu(3X).
46

NOTES

48       The  header  file  <menu.h>  automatically  includes  the  header  file
49       <curses.h>.
50

PORTABILITY

52       These routines emulate the System V menu library.  They were  not  sup‐
53       ported on Version 7 or BSD versions.
54

AUTHORS

56       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
57       Raymond.
58
59
60
61                                                                 menu_mark(3X)
Impressum