<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://wiki.lostsouls.org/w/skins/common/feed.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Man menu item - Revision history</title>
		<link>http://wiki.lostsouls.org/w/index.php?title=Man_menu_item&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.8.2</generator>
		<lastBuildDate>Sat, 25 Apr 2026 22:39:14 GMT</lastBuildDate>
		<item>
			<title>Laine at 20:45, 11 June 2007</title>
			<link>http://wiki.lostsouls.org/w/index.php?title=Man_menu_item&amp;diff=3972&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Files==&lt;br /&gt;
&lt;br /&gt;
 /daemon/input.c&lt;br /&gt;
 /def/descriptor/menu_item.c&lt;br /&gt;
 /lib/descriptors/menu_item.h&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
&lt;br /&gt;
Menu item descriptors are used by menu inputs to define their menu&lt;br /&gt;
options. See 'man input' for documentation on the input system itself,&lt;br /&gt;
'man descriptors' for a general overview of the descriptor system, and&lt;br /&gt;
'man dialog' for documentation of dialog descriptors.&lt;br /&gt;
&lt;br /&gt;
As with dialog descriptors, the best header file to rely upon for picking&lt;br /&gt;
up the menu item descriptor support is input.h.&lt;br /&gt;
&lt;br /&gt;
===Public Fields===&lt;br /&gt;
&lt;br /&gt;
Menu_Item_Key: The text the user enters in order to select the menu item.&lt;br /&gt;
Often a single letter, but not necessarily so.&lt;br /&gt;
&lt;br /&gt;
Menu_Item_Desc: The description of the menu item, as it will appear in&lt;br /&gt;
the menu display constructed automatically by the menu dialog.  Dialog&lt;br /&gt;
colorization applies.  In the case of a closure, received an extra second&lt;br /&gt;
argument of the menu item descriptor.&lt;br /&gt;
&lt;br /&gt;
Menu_Item_Action: The action to take upon the menu item being selected.&lt;br /&gt;
If none is specified, the dialog's Dialog_Action is used.&lt;br /&gt;
&lt;br /&gt;
Menu_Item_Access: Can be used to specify a closure that will determine&lt;br /&gt;
whether a menu item is usable and will appear in the menu.  The closure&lt;br /&gt;
is passed the dialog descriptor as argument; if it returns True, the menu&lt;br /&gt;
item is accessible, and if it returns False it is not.&lt;br /&gt;
&lt;br /&gt;
Menu_Item_Access_Message: A message that will be displayed if a user&lt;br /&gt;
attempts to select the menu item when it cannot be used due to a&lt;br /&gt;
Menu_Item_Access setting.  Dialog colorization applies.  If no&lt;br /&gt;
Menu_Item_Access_Message is specified, the dialog will simply act as if&lt;br /&gt;
the menu item were not in the menu.&lt;br /&gt;
&lt;br /&gt;
Menu_Item_Args: If specified as True, the menu item will accept an&lt;br /&gt;
argument.  For example, if the Menu_Item_Key were &amp;quot;A&amp;quot;, the user could&lt;br /&gt;
type &amp;quot;a xyz abc&amp;quot;, and the menu item would be selected with &amp;quot;xyz abc&amp;quot; as&lt;br /&gt;
its argument.  The argument will be placed in the Dialog_Argument field&lt;br /&gt;
of the dialog descriptor.&lt;br /&gt;
&lt;br /&gt;
Menu_Item_Extra: A space provided in the descriptor for user-defined&lt;br /&gt;
data.  Put anything in this field you want and use it any way you want.&lt;br /&gt;
&lt;br /&gt;
===Internal Fields===&lt;br /&gt;
&lt;br /&gt;
Menu_Item_Tag: The tag for the descriptor system.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
[[man input|input(mechanisms)]], [[man dialog|dialog(descriptors)]], [[man descriptors|descriptors(mechanisms)]]&lt;/div&gt;</description>
			<pubDate>Mon, 11 Jun 2007 20:45:48 GMT</pubDate>			<dc:creator>Laine</dc:creator>			<comments>http://wiki.lostsouls.org/Talk:Man_menu_item</comments>		</item>
	</channel>
</rss>