2 <BODY BGCOLOR="#99ccbb" TEXT="#000000" LINK="#4060b0" VLINK="#000080" ALINK="#ff4040">
4 <STRONG>menu_cursor</STRONG> - position a menu's cursor
9 <STRONG>#include</STRONG> <STRONG><menu.h></STRONG>
10 int pos_menu_cursor(const MENU *menu);
14 <H2>DESCRIPTION</H2><PRE>
15 The function <STRONG>pos_menu_cursor</STRONG> restores the cursor to the
16 current position associated with the menu's selected item.
17 This is useful after <STRONG>curses</STRONG> routines have been called to
18 do screen-painting in response to a menu select.
22 <H2>RETURN VALUE</H2><PRE>
23 This routine returns one of the following:
25 <STRONG>E_OK</STRONG> The routine succeeded.
27 <STRONG>E_SYSTEM_ERROR</STRONG>
28 System error occurred (see <STRONG>errno</STRONG>).
30 <STRONG>E_BAD_ARGUMENT</STRONG>
31 Routine detected an incorrect or out-of-range argu-
34 <STRONG>E_NOT_POSTED</STRONG>
35 The menu has not been posted.
39 <H2>SEE ALSO</H2><PRE>
40 <STRONG><A HREF="ncurses.3x.html">curses(3X)</A></STRONG>, <STRONG><A HREF="menu.3x.html">menu(3X)</A></STRONG>.
45 The header file <STRONG><menu.h></STRONG> automatically includes the header
46 file <STRONG><curses.h></STRONG>.
50 <H2>PORTABILITY</H2><PRE>
51 These routines emulate the System V menu library. They
52 were not supported on Version 7 or BSD versions.
57 Juergen Pfeifer. Manual pages and adaptation for new
58 curses by Eric S. Raymond.