aboutsummaryrefslogtreecommitdiff
path: root/samples/mixedform
diff options
context:
space:
mode:
Diffstat (limited to 'samples/mixedform')
-rwxr-xr-xsamples/mixedform16
1 files changed, 4 insertions, 12 deletions
diff --git a/samples/mixedform b/samples/mixedform
index 617847682ceb..ac4d625e5992 100755
--- a/samples/mixedform
+++ b/samples/mixedform
@@ -1,5 +1,5 @@
#! /bin/sh
-# $Id: mixedform,v 1.6 2010/01/13 10:47:35 tom Exp $
+# $Id: mixedform,v 1.9 2020/11/26 00:27:07 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