aboutsummaryrefslogtreecommitdiff
path: root/samples/form1-utf8
diff options
context:
space:
mode:
Diffstat (limited to 'samples/form1-utf8')
-rwxr-xr-xsamples/form1-utf816
1 files changed, 4 insertions, 12 deletions
diff --git a/samples/form1-utf8 b/samples/form1-utf8
index a2be4a6cf15e..21d655d61ae4 100755
--- a/samples/form1-utf8
+++ b/samples/form1-utf8
@@ -1,5 +1,5 @@
#! /bin/sh
-# $Id: form1-utf8,v 1.7 2010/01/13 10:47:35 tom Exp $
+# $Id: form1-utf8,v 1.10 2020/11/26 00:33:23 tom Exp $
. ./setup-vars
@@ -18,7 +18,7 @@ returncode=0
while test $returncode != 1 && test $returncode != 250
do
exec 3>&1
-value=`$DIALOG --ok-label "Submit" \
+returntext=`$DIALOG --ok-label "Submit" \
--backtitle "$backtitle" \
--insecure "$@" \
--form "Here is a possible piece of a configuration program." \
@@ -31,7 +31,7 @@ value=`$DIALOG --ok-label "Submit" \
returncode=$?
exec 3>&-
-show=`echo "$value" |sed -e 's/^/ /'`
+show=`echo "$returntext" |sed -e 's/^/ /'`
case $returncode in
$DIALOG_CANCEL)
@@ -55,16 +55,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