menu_mark(3X) menu_mark(3X) NAME menu_mark - get and set(7,n,1 builtins) the menu(3x,n,n tk_menuSetFocus) mark string(3,n) SYNOPSIS #include <menu.h> int set_menu_mark(MENU *menu(3x,n,n tk_menuSetFocus), const char *mark); const char *menu_mark(const MENU *menu(3x,n,n tk_menuSetFocus)); DESCRIPTION In order to make menu(3x,n,n tk_menuSetFocus) selections visible on older terminals without highlighting or color capability, the menu(3x,n,n tk_menuSetFocus) library marks selected items in(1,8) a menu(3x,n,n tk_menuSetFocus) with a prefix string. The function set_menu_mark sets the mark string(3,n) for the given menu. Calling set_menu_mark with a null menu(3x,n,n tk_menuSetFocus) item will abolish the mark string. Note that changing the length of the mark string(3,n) for a menu(3x,n,n tk_menuSetFocus) while the menu(3x,n,n tk_menuSetFocus) is posted is likely to produce unhelpful behavior. The default string(3,n) is "-" (a dash). Calling set_menu_mark with a NULL menu(3x,n,n tk_menuSetFocus) argument will change this default. The function menu_mark returns the menu(3x,n,n tk_menuSetFocus)'s mark string(3,n) (or NULL if(3,n) there is none). RETURN VALUE The function menu_mark returns NULL on error. The function set_menu_mark may return the following error(8,n) codes: E_OK The routine succeeded. E_SYSTEM_ERROR System error(8,n) occurred (see errno). E_BAD_ARGUMENT Routine detected an incorrect or out-of-range argument. 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_mark(3X)