File: gauge

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 (17 lines) | stat: -rwxr-xr-x 328 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
DIALOG=Xdialog

(
echo "10" ; sleep 1
echo "XXX" ; echo "The new" ; echo "\\n" ; echo "message"; echo "XXX"
echo "20" ; sleep 1
echo "50" ; sleep 1
echo "75" ; sleep 1
echo "100" ; sleep 1
) |
$DIALOG --title "GAUGE" --gauge "Hi, this is a gauge widget" 8 30

if [ "$?" = 255 ] ; then
	echo ""
	echo "Box closed !"
fi