Curses Library Functions menuopts(3CURSES)
NAME
menuopts, setmenuopts, menuoptson, menuoptsoff -
menus option routines
SYNOPSIS
cc [ flag... ] file... -lmenu -lcurses [ library... ]
#include
OPTIONS menuopts(MENU *menu);
int setmenuopts(MENU *menu, OPTIONS opts);
int menuoptson(MENU *menu, OPTIONS opts);
int menuoptsoff(MENU *menu, OPTIONS opts);
DESCRIPTION
Menu Options
setmenuopts() turns on the named options for menu and
turns off all other options. Options are boolean values that
can be OR-ed together.
menuoptson() turns on the named options for menu; no other
option is changed.
menuoptsoff() turns off the named options for menu; no
other option is changed.
menuopts() returns the current options of menu.
The following values can be OR'd together to create opts.
ONEVALUE Only one item can be selected from the menu.
OSHOWDESC Display the description of the items.
OROWMAJOR Display the menu in row major order.
OIGNORECASE Ignore the case when pattern matching.
SunOS 5.11 Last change: 31 Dec 1996 1
Curses Library Functions menuopts(3CURSES)
OSHOWMATCH Place the cursor within the item name when
pattern matching.
ONONCYCLIC Make certain menu driver requests non-
cyclic.
RETURN VALUES
Except for menuopts(), these routines return one of the
following:
EOK The routine returned successfully.
ESYSTEMEROR System error.
EPOSTED The menu is already posted.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
MT-Level Unsafe
SEE ALSO
curses(3CURSES), menus(3CURSES), attributes(5)
NOTES
The header automatically includes the headers
and .
SunOS 5.11 Last change: 31 Dec 1996 2
|