]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/dialog/samples/gauge2
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / dialog / samples / gauge2
1 #!/bin/sh
2 # $Id: gauge2,v 1.8 2010/01/13 10:26:52 tom Exp $
3 # The original dialog program assumed the first line after the first "XXX"
4 # was a percentage value (compare with "gauge" script).
5
6 . ./setup-vars
7
8 (echo "10" ; sleep 2 ; 
9
10 cat <<"EOF"
11 XXX
12 The new
13 \n
14 message
15 XXX
16 20
17 EOF
18 sleep 2; 
19
20 echo "75" ; sleep 1
21 echo "100") | \
22
23 $DIALOG --title "GAUGE" "$@" --gauge "Hi, this is a gauge widget" 10 40 0
24
25 if [ "$?" = $DIALOG_ESC ] ; then
26         echo ""
27         echo "Box closed !"
28 fi