12a3e3873SBaptiste Daroussin#!/bin/sh 2*a96ef450SBaptiste Daroussin# $Id: report-button,v 1.8 2020/11/26 00:17:40 tom Exp $ 3*a96ef450SBaptiste Daroussin# Report button-only, no $returntext 44c8945a0SNathan Whitehorn# vile:shmode 54c8945a0SNathan Whitehorn 6*a96ef450SBaptiste Daroussincase ${returncode:-0} in 74c8945a0SNathan Whitehorn $DIALOG_OK) 84c8945a0SNathan Whitehorn echo "OK";; 94c8945a0SNathan Whitehorn $DIALOG_CANCEL) 104c8945a0SNathan Whitehorn echo "Cancel pressed.";; 114c8945a0SNathan Whitehorn $DIALOG_HELP) 124c8945a0SNathan Whitehorn echo "Help pressed.";; 134c8945a0SNathan Whitehorn $DIALOG_EXTRA) 144c8945a0SNathan Whitehorn echo "Extra button pressed.";; 154c8945a0SNathan Whitehorn $DIALOG_ITEM_HELP) 164c8945a0SNathan Whitehorn echo "Item-help button pressed.";; 17*a96ef450SBaptiste Daroussin $DIALOG_TIMEOUT) 18*a96ef450SBaptiste Daroussin echo "Timeout expired.";; 194c8945a0SNathan Whitehorn $DIALOG_ERROR) 204c8945a0SNathan Whitehorn echo "ERROR!";; 214c8945a0SNathan Whitehorn $DIALOG_ESC) 224c8945a0SNathan Whitehorn echo "ESC pressed.";; 23*a96ef450SBaptiste Daroussin *) 24*a96ef450SBaptiste Daroussin echo "Return code was $returncode";; 254c8945a0SNathan Whitehornesac 26