diff options
Diffstat (limited to 'samples/report-button')
| -rw-r--r-- | samples/report-button | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/samples/report-button b/samples/report-button index c6a173094573..0976c96a9d83 100644 --- a/samples/report-button +++ b/samples/report-button @@ -1,9 +1,9 @@ #!/bin/sh -# $Id: report-button,v 1.3 2012/06/29 09:29:36 tom Exp $ -# Report button-only, no $RESULT +# $Id: report-button,v 1.8 2020/11/26 00:17:40 tom Exp $ +# Report button-only, no $returntext # vile:shmode -case $retval in +case ${returncode:-0} in $DIALOG_OK) echo "OK";; $DIALOG_CANCEL) @@ -14,8 +14,12 @@ case $retval in echo "Extra button pressed.";; $DIALOG_ITEM_HELP) echo "Item-help button pressed.";; + $DIALOG_TIMEOUT) + echo "Timeout expired.";; $DIALOG_ERROR) echo "ERROR!";; $DIALOG_ESC) echo "ESC pressed.";; + *) + echo "Return code was $returncode";; esac |
