File: calendar

package info (click to toggle)
xdialog 2.2.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,044 kB
  • ctags: 540
  • sloc: ansic: 4,985; sh: 4,525; makefile: 63; sed: 16
file content (12 lines) | stat: -rwxr-xr-x 231 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

USERDATE=`Xdialog --stdout --title "CALENDAR" --calendar "Please choose a date..." 0 0 0 0 0`

case $? in
  0)
    echo "Date entered: $USERDATE.";;
  1)
    echo "Cancel pressed.";;
  255)
    echo "Box closed.";;
esac