aboutsummaryrefslogtreecommitdiff
path: root/samples/msgbox4-utf8
diff options
context:
space:
mode:
Diffstat (limited to 'samples/msgbox4-utf8')
-rwxr-xr-xsamples/msgbox4-utf818
1 files changed, 10 insertions, 8 deletions
diff --git a/samples/msgbox4-utf8 b/samples/msgbox4-utf8
index acbbebe5eabb..00ac0698ff8b 100755
--- a/samples/msgbox4-utf8
+++ b/samples/msgbox4-utf8
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: msgbox4-utf8,v 1.10 2010/01/13 10:20:03 tom Exp $
+# $Id: msgbox4-utf8,v 1.13 2020/11/26 00:25:37 tom Exp $
. ./setup-vars
@@ -23,13 +23,15 @@ There are several checking points:
Hi, this is a simple message box. You can use this to \
display any message you like. The box will remain until \
you press the ENTER key." 22 $width
-retval=$?
-
-case $retval in
- $DIALOG_CANCEL)
- echo "Cancel pressed.";exit;;
- $DIALOG_ESC)
- echo "ESC pressed.";exit;;
+returncode=$?
+
+case $returncode in
+ $DIALOG_OK)
+ ;;
+ *)
+ . ./report-button;
+ exit
+ ;;
esac
width=`expr $width + 1`