freebsd-dev/usr.sbin/bsdconfig/startup
Devin Teske b5bd0bacd6 Similar to r251236, r251242, and r251244. Introduce new function-pair to
dialog(1) API in dialog.subr responsible for retrieving menu-choice data
(for the --menu widget).

Add f_dialog_menuitem_store()/f_dialog_menuitem_fetch() for storing and
retrieving the menuitem (not the tag) from a --menu widget result.

The dialog --menu widget returns the `tag' from the tag/item pair of choices
for a menu list. Because the menu list is often local to the function that
is displaying it, the ability to dereference this into the item is not
possible unless you use a global. This changes things so the function (upon
successful return of dialog) dereferences the tag into the item and stores
it for later retrieval using these functions.

NOTE: Tags are dereferenced into items using f_dialog_menutag2item().
2013-06-04 03:30:44 +00:00
..
include Clarify to the user the amount of time required to load the menus for 2013-04-22 06:30:29 +00:00
share Improvements to whitespace and comments. 2013-06-02 22:34:40 +00:00
INDEX
Makefile
misc Improvements to whitespace and comments. 2013-06-02 22:34:40 +00:00
rcadd Standardize the way functions build their arguments leading up to a dialog 2013-06-02 20:02:50 +00:00
rcconf Improvements to whitespace and comments. 2013-06-02 22:34:40 +00:00
rcdelete Fix a typo. In this case, the typo caused the f_noyes() invocation to 2013-06-02 23:23:29 +00:00
rcedit Centralize standard getopts arguments, both for convenience and to correct 2013-05-14 03:21:13 +00:00
rcvar Similar to r251236, r251242, and r251244. Introduce new function-pair to 2013-06-04 03:30:44 +00:00
startup Standardize the way functions build their arguments leading up to a dialog 2013-06-02 20:02:50 +00:00
USAGE Add new flags -d' (sets debug=1) and -D file' (sets debugFile) and 2013-04-22 05:02:34 +00:00