xref: /freebsd/contrib/dialog/samples/mixedgauge (revision 4c8945a06b01a5c8122cdeb402af36bb46a06acc)
1#! /bin/sh
2# $Id: mixedgauge,v 1.7 2010/01/13 10:20:03 tom Exp $
3
4. ./setup-vars
5
6background="An Example of --mixedgauge usage"
7
8for i in 5 10 20 30 40 50 60 70 80 90 100
9do
10$DIALOG --backtitle "$background" \
11	--title "Mixed gauge demonstration" "$@" \
12	--mixedgauge "This is a prompt message,\nand this is the second line." \
13		0 0 33 \
14		"Process one"	"0" \
15		"Process two"	"1" \
16		"Process three"	"2" \
17		"Process four"	"3" \
18		""		"8" \
19		"Process five"	"5" \
20		"Process six"	"6" \
21		"Process seven"	"7" \
22		"Process eight"	"4" \
23		"Process nine"	"-$i"
24# break
25sleep 1
26done
27