HardenedBSD/contrib/dialog/samples/report-edit
Baptiste Daroussin 2a3e3873a1 Update dialog to 1.2-20130523
Level up WARNS
2013-06-17 10:28:55 +00:00

24 lines
464 B
Bash

#!/bin/sh
# $Id: report-edit,v 1.4 2012/06/29 09:29:41 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