xref: /freebsd/contrib/dialog/samples/gauge (revision d4eeb02986980bf33dd56c41ceb9fc5f180c0d47)
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