Query: getitems
OS: sunos
Section: 1f
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
getitems(1F) FMLI Commands getitems(1F)NAMEgetitems - returns a list of currently marked menu itemsSYNOPSISgetitems [delimiter_string]DESCRIPTIONThe getitems function returns the value of lininfo if defined, else it returns the value of the name descriptor, for all currently marked menu items. Each value in the list is delimited by delimiter_string. The default value of delimiter_string is newline.EXAMPLESExample 1: A sample output of getitems command. The done descriptor in the following menu definition file executes getitems when the user presses ENTER (note that the menu is multise- lect): Menu="Example" multiselect=TRUE done=`getitems ":" | message` name="Item 1" action=`message "You selected item 1"` name="Item 2" lininfo="This is item 2" action=`message "You selected item 2"` name="Item 3" action=`message "You selected item 3"` If a user marked all three items in this menu, pressing ENTER would cause the following string to be displayed on the message line: Item 1:This is item 2:Item 3NOTESBecause lininfo is defined for the second menu item, its value is displayed instead of the value of the name descriptor.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+SEE ALSOattributes(5) SunOS 5.10 5 Jul 1990 getitems(1F)
Related Man Pages |
---|
getitems(1f) - opensolaris |
menu_item_current(3curses) - sunos |
tk::menu::item(3) - suse |
tk::menu::item(3) - centos |
tk::menu::item(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Swutch-Case script |
Add Item to Dock 0.0.7 |
Trouble with UNIX tr (translate) function |
Add Item to Dock 0.0.8 |
Output to console and to log |