File: report-button

package info (click to toggle)
dialog 1.3-20160828-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 3,120 kB
  • ctags: 1,761
  • sloc: ansic: 17,594; sh: 7,075; makefile: 451; perl: 355; python: 164
file content (21 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# $Id: report-button,v 1.3 2012/06/29 09:29:36 tom Exp $
# Report button-only, no $RESULT
# vile:shmode

case $retval in
  $DIALOG_OK)
    echo "OK";;
  $DIALOG_CANCEL)
    echo "Cancel pressed.";;
  $DIALOG_HELP)
    echo "Help pressed.";;
  $DIALOG_EXTRA)
    echo "Extra button pressed.";;
  $DIALOG_ITEM_HELP)
    echo "Item-help button pressed.";;
  $DIALOG_ERROR)
    echo "ERROR!";;
  $DIALOG_ESC)
    echo "ESC pressed.";;
esac