From 8f385d0e89111ca1716767f7dc0bdffe3225b3d0 Mon Sep 17 00:00:00 2001 From: dteske Date: Mon, 22 Apr 2013 05:52:06 +0000 Subject: UI improvements. First, implement --default-item whenever and wherever possible to save keystrokes. Second, overhaul startup/rcdelete for much improved performance. Last, but not least, kill-off useage of --clear and implement --keep-tite in harmony to minimize jarring transitions. Also, fix local variable names where necessary while we're here with other minor comment-enhancements/typo-corrections. --- usr.sbin/bsdconfig/usermgmt/groupedit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.sbin/bsdconfig/usermgmt/groupedit') diff --git a/usr.sbin/bsdconfig/usermgmt/groupedit b/usr.sbin/bsdconfig/usermgmt/groupedit index 93036e1..7cd70c6 100755 --- a/usr.sbin/bsdconfig/usermgmt/groupedit +++ b/usr.sbin/bsdconfig/usermgmt/groupedit @@ -67,11 +67,13 @@ f_mustberoot_init # # Loop until the user Exits, Cancels or presses ESC # +defaultitem="" while :; do - f_dialog_menu_group_list + f_dialog_menu_group_list "$defaultitem" retval=$? mtag=$( f_dialog_menutag ) f_dprintf "retval=%s mtag=[%s]" $retval "$mtag" + defaultitem="$mtag" [ $retval -eq 0 ] || f_die -- cgit v1.1