| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # $Id: report-edit,v 1.8 2020/11/26 00:18:32 tom Exp $ |
| 3 | # Report results from editing. |
| 4 | # vile:shmode |
| 5 | |
| 6 | case ${returncode:-0} in |
| 7 | $DIALOG_OK) |
| 8 | diffscip-shell system . . diff. -c "${input:-input}" "${output:-output}" |
| 9 | echoscip-shell system . . echo. "OK" |
| 10 | ;; |
| 11 | $DIALOG_CANCEL) |
| 12 | echoscip-shell system . . echo. "Cancel pressed";; |
| 13 | $DIALOG_HELP) |
| 14 | echoscip-shell system . . echo. "Help pressed";; |
| 15 | $DIALOG_EXTRA) |
| 16 | echoscip-shell system . . echo. "Extra pressed";; |
| 17 | $DIALOG_ITEM_HELP) |
| 18 | echoscip-shell system . . echo. "Item-help button pressed.";; |
| 19 | $DIALOG_TIMEOUT) |
| 20 | echoscip-shell system . . echo. "Timeout expired.";; |
| 21 | $DIALOG_ERROR) |
| 22 | echoscip-shell system . . echo. "ERROR!";; |
| 23 | $DIALOG_ESC) |
| 24 | echoscip-shell system . . echo. "ESC pressed.";; |
| 25 | *) |
| 26 | echoscip-shell system . . echo. "Return code was $returncode";; |
| 27 | esac |