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