File: rangebox

package info (click to toggle)
xdialog 2.0.5-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,596 kB
  • ctags: 1,060
  • sloc: ansic: 8,471; sh: 4,052; yacc: 318; makefile: 79
file content (12 lines) | stat: -rwxr-xr-x 226 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

VOLUME=`Xdialog 2>&1 --title "RANGE BOX" --rangebox "Please set the volume..." 0 0 0 12 5`

case $? in
  0)
    echo "Volume set to $VOLUME.";;
  1)
    echo "Cancel pressed.";;
  255)
    echo "Box closed.";;
esac