summaryrefslogtreecommitdiffstats
path: root/samples/report-string
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-01-13 02:21:23 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-01-13 02:21:23 +0000
commit83cbb378b8cf90a7b351c91699bfa1de87086024 (patch)
tree31f235d6bd424e7318015827321080547d47c5ee /samples/report-string
downloadFreeBSD-src-83cbb378b8cf90a7b351c91699bfa1de87086024.zip
FreeBSD-src-83cbb378b8cf90a7b351c91699bfa1de87086024.tar.gz
Vendor import of dialog-1.1-20100428.
Diffstat (limited to 'samples/report-string')
-rw-r--r--samples/report-string23
1 files changed, 23 insertions, 0 deletions
diff --git a/samples/report-string b/samples/report-string
new file mode 100644
index 0000000..a674517
--- /dev/null
+++ b/samples/report-string
@@ -0,0 +1,23 @@
+# $Id: report-string,v 1.2 2010/01/13 10:00:11 tom Exp $
+# Report result passed in a string $RESULT
+# vile:shmode
+
+case $retval in
+ $DIALOG_OK)
+ echo "Result is $RESULT";;
+ $DIALOG_CANCEL)
+ echo "Cancel pressed.";;
+ $DIALOG_HELP)
+ echo "Help pressed ($RESULT).";;
+ $DIALOG_EXTRA)
+ echo "Extra button pressed.";;
+ $DIALOG_ITEM_HELP)
+ echo "Item-help button pressed.";;
+ $DIALOG_ESC)
+ if test -n "$RESULT" ; then
+ echo "$RESULT"
+ else
+ echo "ESC pressed."
+ fi
+ ;;
+esac
OpenPOWER on IntegriCloud