DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

menu_item_opts(S-osr5)


menu_item_opts: set_item_opts, item_opts_on, item_opts_off, item_opts -- menus item option routines

Syntax

cc ... -lmenu -lcurses

#include <menu.h>

int set_item_opts(ITEM *item, OPTIONS opts); int item_opts_on(ITEM *item, OPTIONS opts); int item_opts_off(ITEM *item, OPTIONS opts); OPTIONS item_opts(ITEM *item);

Description

set_item_opts- turn on specified item options and turn off the others

item_opts_on- turn on specified item options and leave the others unchanged

item_opts_off- turn off specified item options and leave the others unchanged

item_opts- return the current item options

set_item_opts(S-osr5) turns on the named options for item and turns off all other options. Options are boolean values that can be OR-ed together.

item_opts_on(S-osr5) turns on the named options for item; no other option is changed.

item_opts_off(S-osr5) turns off the named options for item; no other option is changed.

item_opts(S-osr5) returns the current options of item.

Item Options:


O_SELECTABLE
The item can be selected during menu processing.

Return values

Except for item_opts( ), these routines return one of the following:

E_OK - The routine returned successfully.
E_SYSTEM_ERROR - System error.

 E_OK            -  The routine returned successfully.
 E_SYSTEM_ERROR  -  System error.

Warning

The header file menu.h automatically includes the header files eti.h and curses.h.

Files


/usr/lib/libmenu.a
the library

See also

curses(S-osr5), menus(S-osr5)

Standards conformance

set_item_opts(S-osr5), item_opts_on(S-osr5), item_opts_off(S-osr5), and item_opts(S-osr5) are not part of any currently supported standard; they were developed by UNIX System Laboratories, Inc. and are maintained by The SCO Group.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005