freebsd-dev/contrib/dialog/samples/report-edit
Nathan Whitehorn 1971864966 Revert r241818 that updated dialog to 20120706. This turns out to horribly
break mixed form dialogs in conjunction with the FreeBSD termcap, making
the bsdinstall partition editor Add dialog, among other things, completely
nonfunctional. This restores dialog 20110707.
2012-12-30 04:22:34 +00:00

23 lines
454 B
Plaintext

# $Id: report-edit,v 1.3 2010/01/13 09:59:43 tom Exp $
# Report results from editing.
# vile:shmode
case $retval in
$DIALOG_OK)
diff -c $input $output
echo "OK"
;;
$DIALOG_CANCEL)
echo "Cancel pressed";;
$DIALOG_HELP)
echo "Help pressed";;
$DIALOG_EXTRA)
echo "Extra pressed";;
$DIALOG_ITEM_HELP)
echo "Item-help button pressed.";;
$DIALOG_ERROR)
echo "ERROR!";;
$DIALOG_ESC)
echo "ESC pressed.";;
esac