]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/dialog/samples/report-edit
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / dialog / samples / report-edit
1 # $Id: report-edit,v 1.3 2010/01/13 09:59:43 tom Exp $
2 # Report results from editing.
3 # vile:shmode
4
5 case $retval in
6   $DIALOG_OK)
7     diff -c $input $output
8     echo "OK"
9     ;;
10   $DIALOG_CANCEL)
11     echo "Cancel pressed";;
12   $DIALOG_HELP)
13     echo "Help pressed";;
14   $DIALOG_EXTRA)
15     echo "Extra pressed";;
16   $DIALOG_ITEM_HELP)
17     echo "Item-help button pressed.";;
18   $DIALOG_ERROR)
19     echo "ERROR!";;
20   $DIALOG_ESC)
21     echo "ESC pressed.";;
22 esac