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