xref: /freebsd/contrib/dialog/samples/report-edit (revision 2a3e3873a1e4cd958f2b0f85d3b10cfa40575d30)
1*2a3e3873SBaptiste Daroussin#!/bin/sh
2*2a3e3873SBaptiste Daroussin# $Id: report-edit,v 1.4 2012/06/29 09:29:41 tom Exp $
34c8945a0SNathan Whitehorn# Report results from editing.
44c8945a0SNathan Whitehorn# vile:shmode
54c8945a0SNathan Whitehorn
64c8945a0SNathan Whitehorncase $retval in
74c8945a0SNathan Whitehorn  $DIALOG_OK)
84c8945a0SNathan Whitehorn    diff -c $input $output
94c8945a0SNathan Whitehorn    echo "OK"
104c8945a0SNathan Whitehorn    ;;
114c8945a0SNathan Whitehorn  $DIALOG_CANCEL)
124c8945a0SNathan Whitehorn    echo "Cancel pressed";;
134c8945a0SNathan Whitehorn  $DIALOG_HELP)
144c8945a0SNathan Whitehorn    echo "Help pressed";;
154c8945a0SNathan Whitehorn  $DIALOG_EXTRA)
164c8945a0SNathan Whitehorn    echo "Extra pressed";;
174c8945a0SNathan Whitehorn  $DIALOG_ITEM_HELP)
184c8945a0SNathan Whitehorn    echo "Item-help button pressed.";;
194c8945a0SNathan Whitehorn  $DIALOG_ERROR)
204c8945a0SNathan Whitehorn    echo "ERROR!";;
214c8945a0SNathan Whitehorn  $DIALOG_ESC)
224c8945a0SNathan Whitehorn    echo "ESC pressed.";;
234c8945a0SNathan Whitehornesac
24