diff options
Diffstat (limited to 'samples/inputmenu3')
| -rwxr-xr-x | samples/inputmenu3 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/samples/inputmenu3 b/samples/inputmenu3 index 4b9d5229e1d2..58a3079a162c 100755 --- a/samples/inputmenu3 +++ b/samples/inputmenu3 @@ -1,5 +1,5 @@ #! /bin/sh -# $Id: inputmenu3,v 1.11 2012/07/01 01:00:34 tom Exp $ +# $Id: inputmenu3,v 1.14 2020/11/26 00:28:52 tom Exp $ # # "inputmenu1" with defaultitem, help-button and item-help. @@ -19,7 +19,7 @@ defaultitem="Username:" while test $returncode != 1 && test $returncode != 250 do exec 3>&1 -value=`$DIALOG --clear --ok-label "Create" \ +returntext=`$DIALOG --clear --ok-label "Create" \ --backtitle "$backtitle" \ --help-button \ --help-label "Script" \ @@ -52,7 +52,7 @@ exec 3>&- esac ;; $DIALOG_OK) - case $value in + case $returntext in HELP*) "$DIALOG" \ --textbox "$0" 0 0 @@ -74,8 +74,8 @@ exec 3>&- --textbox "$0" 0 0 ;; $DIALOG_EXTRA) - tag=`echo "$value" |sed -e 's/^RENAMED //' -e 's/:.*/:/'` - item=`echo "$value" |sed -e 's/^[^:]*:[ ]*//' -e 's/[ ]*$//'` + tag=`echo "$returntext" |sed -e 's/^RENAMED //' -e 's/:.*/:/'` + item=`echo "$returntext" |sed -e 's/^[^:]*:[ ]*//' -e 's/[ ]*$//'` case "$tag" in Username:) @@ -97,8 +97,8 @@ exec 3>&- test -n "$tag" && defaultitem="$tag" ;; - $DIALOG_ESC) - echo "ESC pressed." + *) + . ./report-button break ;; |
