12a3e3873SBaptiste Daroussin#!/bin/sh 2*a96ef450SBaptiste Daroussin# $Id: report-edit,v 1.8 2020/11/26 00:18:32 tom Exp $ 34c8945a0SNathan Whitehorn# Report results from editing. 44c8945a0SNathan Whitehorn# vile:shmode 54c8945a0SNathan Whitehorn 6*a96ef450SBaptiste Daroussincase ${returncode:-0} in 74c8945a0SNathan Whitehorn $DIALOG_OK) 8*a96ef450SBaptiste Daroussin diff -c "${input:-input}" "${output:-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.";; 19*a96ef450SBaptiste Daroussin $DIALOG_TIMEOUT) 20*a96ef450SBaptiste Daroussin echo "Timeout expired.";; 214c8945a0SNathan Whitehorn $DIALOG_ERROR) 224c8945a0SNathan Whitehorn echo "ERROR!";; 234c8945a0SNathan Whitehorn $DIALOG_ESC) 244c8945a0SNathan Whitehorn echo "ESC pressed.";; 25*a96ef450SBaptiste Daroussin *) 26*a96ef450SBaptiste Daroussin echo "Return code was $returncode";; 274c8945a0SNathan Whitehornesac 28