xref: /freebsd/contrib/dialog/samples/gauge (revision 3bdf775801b218aa5a89564839405b122f4b233e)
1#!/bin/sh
2# $Id: gauge,v 1.7 2010/01/13 10:20:03 tom Exp $
3
4. ./setup-vars
5
6PCT=10
7(
8while test $PCT != 100
9do
10cat <<EOF
11XXX
12$PCT
13The new\n\
14message ($PCT percent)
15XXX
16EOF
17PCT=`expr $PCT + 10`
18sleep 1
19done
20) |
21
22$DIALOG --title "GAUGE" "$@" --gauge "Hi, this is a gauge widget" 20 70 0
23