freebsd-nq/contrib/dialog/samples/report-yesno

22 lines
433 B
Plaintext
Raw Normal View History

2012-10-21 18:18:09 +00:00
#!/bin/sh
# $Id: report-yesno,v 1.2 2012/06/29 09:32:12 tom Exp $
2011-01-13 02:21:23 +00:00
# Report button-only, no $RESULT
# vile:shmode
case $retval in
$DIALOG_OK)
echo "YES";;
$DIALOG_CANCEL)
echo "NO";;
$DIALOG_HELP)
echo "Help pressed.";;
$DIALOG_EXTRA)
echo "Extra button pressed.";;
$DIALOG_ITEM_HELP)
echo "Item-help button pressed.";;
$DIALOG_ERROR)
echo "ERROR!";;
$DIALOG_ESC)
echo "ESC pressed.";;
esac