aboutsummaryrefslogtreecommitdiff
path: root/samples/inputmenu1
diff options
context:
space:
mode:
Diffstat (limited to 'samples/inputmenu1')
-rwxr-xr-xsamples/inputmenu112
1 files changed, 6 insertions, 6 deletions
diff --git a/samples/inputmenu1 b/samples/inputmenu1
index 905c29226191..1d044c80bed6 100755
--- a/samples/inputmenu1
+++ b/samples/inputmenu1
@@ -1,5 +1,5 @@
#! /bin/sh
-# $Id: inputmenu1,v 1.9 2012/07/01 00:59:54 tom Exp $
+# $Id: inputmenu1,v 1.12 2020/11/26 00:29:41 tom Exp $
#
# "inputmenu" rewritten into Bourne shell.
@@ -18,7 +18,7 @@ returncode=0
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" "$@" \
--inputmenu "Originally I designed --inputmenu for a \
configuration purpose. Here is a possible piece of a configuration program." \
@@ -57,8 +57,8 @@ exec 3>&-
$user" 10 40
;;
$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)
@@ -76,8 +76,8 @@ exec 3>&-
esac
;;
- $DIALOG_ESC)
- echo "ESC pressed."
+ *)
+ . ./report-button
break
;;