diff options
Diffstat (limited to 'samples/mixedform2')
| -rwxr-xr-x | samples/mixedform2 | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/samples/mixedform2 b/samples/mixedform2 index 07f1d664617c..6a8f554c5dda 100755 --- a/samples/mixedform2 +++ b/samples/mixedform2 @@ -1,5 +1,5 @@ #! /bin/sh -# $Id: mixedform2,v 1.5 2010/01/13 10:47:35 tom Exp $ +# $Id: mixedform2,v 1.8 2020/11/26 00:26:50 tom Exp $ . ./setup-vars @@ -9,7 +9,7 @@ while test $returncode != 1 && test $returncode != 250 do returncode=$? exec 3>&1 -value=`$DIALOG --title "Mixed form demonstration" --ok-label "Submit" \ +returntext=`$DIALOG --title "Mixed form demonstration" --ok-label "Submit" \ --backtitle "$backtitle" \ --insecure "$@" \ --mixedform "Here is a possible piece of a configuration program." \ @@ -21,7 +21,7 @@ value=`$DIALOG --title "Mixed form demonstration" --ok-label "Submit" \ 2>&1 1>&3` returncode=$? exec 3>&- -show=`echo "$value" |sed -e 's/^/ /'` +show=`echo "$returntext" |sed -e 's/^/ /'` case $returncode in $DIALOG_CANCEL) @@ -45,16 +45,8 @@ show=`echo "$value" |sed -e 's/^/ /'` --msgbox "Resulting data:\n\ $show" 10 40 ;; - $DIALOG_HELP) - echo "Button 2 (Help) pressed." - exit - ;; - $DIALOG_EXTRA) - echo "Button 3 (Extra) pressed." - exit - ;; *) - echo "Return code was $returncode" + . ./report-button exit ;; esac |
