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