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