blob: a674517c75e2581c3a8ea693da32d670f0f3f34a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
|