]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/dialog/samples/gauge
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / dialog / samples / gauge
1 #!/bin/sh
2 # $Id: gauge,v 1.7 2010/01/13 10:20:03 tom Exp $
3
4 . ./setup-vars
5
6 PCT=10
7 (
8 while test $PCT != 100
9 do
10 cat <<EOF
11 XXX
12 $PCT
13 The new\n\
14 message ($PCT percent)
15 XXX
16 EOF
17 PCT=`expr $PCT + 10`
18 sleep 1
19 done
20 ) |
21
22 $DIALOG --title "GAUGE" "$@" --gauge "Hi, this is a gauge widget" 20 70 0