PageRenderTime 25ms CodeModel.GetById 17ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/dialog/samples/mixedgauge

https://bitbucket.org/freebsd/freebsd-head/
Shell | 26 lines | 20 code | 3 blank | 3 comment | 1 complexity | 714f6f8a31cf672abf43f56cc03e0d1c MD5 | raw file
 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