diff options
Diffstat (limited to 'Build/source/utils/dialog/dialog-1.1-20080819/samples/timebox2-stdout')
-rwxr-xr-x | Build/source/utils/dialog/dialog-1.1-20080819/samples/timebox2-stdout | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/utils/dialog/dialog-1.1-20080819/samples/timebox2-stdout b/Build/source/utils/dialog/dialog-1.1-20080819/samples/timebox2-stdout new file mode 100755 index 00000000000..52205289711 --- /dev/null +++ b/Build/source/utils/dialog/dialog-1.1-20080819/samples/timebox2-stdout @@ -0,0 +1,14 @@ +#!/bin/sh +# $Id: timebox2-stdout,v 1.1 2003/08/15 19:40:37 tom Exp $ +: ${DIALOG=dialog} + +USERTIME=`$DIALOG --stdout --title "TIMEBOX" --timebox "Please set the time..." 0 0` + +case $? in + 0) + echo "Time entered: $USERTIME.";; + 1) + echo "Cancel pressed.";; + 255) + echo "Box closed.";; +esac |