PageRenderTime 88ms CodeModel.GetById 86ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

/contrib/dialog/samples/gauge0

https://bitbucket.org/freebsd/freebsd-head/
Shell | 23 lines | 18 code | 3 blank | 2 comment | 2 complexity | f5ac1ffed6ba8fad7bcb6b5206a45cbd MD5 | raw file
 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