diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-02-26 09:05:35 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2021-02-26 09:05:35 +0000 |
| commit | 01b7bcd408fd9e9dc9088b1df5761fcc0971d7e1 (patch) | |
| tree | 593f2e62b1846058a020ffcecb0ef93eb7ac2153 /samples/msgbox4-8bit | |
| parent | 4dccdce4191d6e2bc3ba9f782b0fe1aa46b743e3 (diff) | |
Diffstat (limited to 'samples/msgbox4-8bit')
| -rwxr-xr-x | samples/msgbox4-8bit | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/samples/msgbox4-8bit b/samples/msgbox4-8bit index 216ac8eccb50..ba703c6134b6 100755 --- a/samples/msgbox4-8bit +++ b/samples/msgbox4-8bit @@ -1,5 +1,5 @@ #!/bin/sh -# $Id: msgbox4-8bit,v 1.4 2010/01/13 10:20:03 tom Exp $ +# $Id: msgbox4-8bit,v 1.8 2020/11/26 00:26:09 tom Exp $ . ./setup-vars @@ -12,18 +12,20 @@ $DIALOG --title "MESSAGE BOX (width $width)" --no-collapse --colors "$@" \ --msgbox "\ This sample uses characters which are non-printing in POSIX locale. -\Z1`./rotated-data 0 $SAMPLE` \Z2`./rotated-data 1 $SAMPLE` \Z3`./rotated-data 2 $SAMPLE` \Z4`./rotated-data 3 $SAMPLE`\Zn +\Z1`./rotated-data 0 "$SAMPLE"` \Z2`./rotated-data 1 "$SAMPLE"` \Z3`./rotated-data 2 "$SAMPLE"` \Z4`./rotated-data 3 "$SAMPLE"`\Zn 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=$? +returncode=$? -case $retval in - $DIALOG_CANCEL) - echo "Cancel pressed.";exit;; - $DIALOG_ESC) - echo "ESC pressed.";exit;; +case $returncode in + $DIALOG_OK) + ;; + *) + . ./report-button; + exit + ;; esac width=`expr $width + 1` |
