4 <!-- Manpage converted by man2html 3.0.1 -->
8 <B>menu_mark</B> - get and set the menu mark string
12 <H2>SYNOPSIS</H2><PRE>
13 <B>#include</B> <B><menu.h></B>
14 int set_menu_mark(MENU *menu, const char *mark);
15 const char *menu_mark(const MENU *menu);
19 <H2>DESCRIPTION</H2><PRE>
20 In order to make menu selections visible on older termi-
21 nals without highlighting or color capability, the menu
22 library marks selected items in a menu with a prefix
25 The function <B>set_menu_mark</B> sets the mark string for the
26 given menu. Calling <B>set_menu_mark</B> with a null menu item
27 will abolish the mark string. Note that changing the
28 length of the mark string for a menu while the menu is
29 posted is likely to produce unhelpful behavior.
31 The default string is "-" (a dash). Calling <B>set_menu_mark</B>
32 with a <B>NULL</B> menu argument will change this default.
34 The function <B>menu_mark</B> returns the menu's mark string (or
35 <B>NULL</B> if there is none).
39 <H2>RETURN VALUE</H2><PRE>
40 The function <B>menu_mark</B> returns <B>NULL</B> on error. The func-
41 tion <B>set_menu_mark</B> may return the following error codes:
43 <B>E_OK</B> The routine succeeded.
46 System error occurred (see <B>errno</B>).
49 Routine detected an incorrect or out-of-range argu-
54 <H2>SEE ALSO</H2><PRE>
55 <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="menu.3x.html">menu(3x)</A></B>.
60 The header file <B><menu.h></B> automatically includes the header
61 file <B><curses.h></B>.
65 <H2>PORTABILITY</H2><PRE>
66 These routines emulate the System V menu library. They
67 were not supported on Version 7 or BSD versions.
72 Juergen Pfeifer. Manual pages and adaptation for new
73 curses by Eric S. Raymond.
78 Man(1) output converted with
79 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>