menu_opts(3X) menu_opts(3X) NAME menu_opts - set(7,n,1 builtins) and get menu(3x,n,n tk_menuSetFocus) options SYNOPSIS #include <menu.h> int set_menu_opts(MENU *menu(3x,n,n tk_menuSetFocus), OPTIONS opts); int menu_opts_on(MENU *menu(3x,n,n tk_menuSetFocus), OPTIONS opts); int menu_opts_off(MENU *menu(3x,n,n tk_menuSetFocus), OPTIONS opts); OPTIONS menu_opts(const MENU *menu(3x,n,n tk_menuSetFocus)); DESCRIPTION The function set_menu_opts sets all the given menu(3x,n,n tk_menuSetFocus)'s option bits (menu(3x,n,n tk_menuSetFocus) option bits may be logically-OR'ed together). The function menu_opts_on turns on the given option bits, and leaves others alone. The function menu_opts_off turns off the given option bits, and leaves others alone. The function menu_opts returns the menu(3x,n,n tk_menuSetFocus)'s current option bits. The following options are defined (all are on by default): O_ONEVALUE Only one item can be selected for this menu. O_SHOWDESC Display the item descriptions when the menu(3x,n,n tk_menuSetFocus) is posted. O_ROWMAJOR Display the menu(3x,n,n tk_menuSetFocus) in(1,8) row-major order. O_IGNORECASE Ignore the case when pattern-matching. O_SHOWMATCH Move the cursor to within the item name while pattern-matching. O_NONCYCLIC Don't wrap around next-item and previous-item, requests to the other end of the menu. RETURN VALUE Except for menu_opts, each routine returns one of the following: E_OK The routine succeeded. E_SYSTEM_ERROR System error(8,n) occurred (see errno). E_POSTED The menu(3x,n,n tk_menuSetFocus) is already posted. SEE ALSO curses(3X), menu(3x,n,n tk_menuSetFocus)(3X). NOTES The header file(1,n) <menu.h> automatically includes the header file(1,n) <curses.h>. PORTABILITY These routines emulate the System V menu(3x,n,n tk_menuSetFocus) library. They were not sup- ported on Version 7 or BSD versions. AUTHORS Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond. menu_opts(3X)