summaryrefslogtreecommitdiff
path: root/Build/source/utils/dialog/dialog-1.1-20080819/samples/gauge3
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/dialog/dialog-1.1-20080819/samples/gauge3')
-rwxr-xr-xBuild/source/utils/dialog/dialog-1.1-20080819/samples/gauge321
1 files changed, 21 insertions, 0 deletions
diff --git a/Build/source/utils/dialog/dialog-1.1-20080819/samples/gauge3 b/Build/source/utils/dialog/dialog-1.1-20080819/samples/gauge3
new file mode 100755
index 00000000000..93b0041fcef
--- /dev/null
+++ b/Build/source/utils/dialog/dialog-1.1-20080819/samples/gauge3
@@ -0,0 +1,21 @@
+#!/bin/sh
+# $Id: gauge3,v 1.3 2008/07/22 23:48:56 tom Exp $
+: ${DIALOG=dialog}
+
+(
+sleep 1
+for n in 0 1 2 3 4 5 4 3 2 1 0
+do
+PCT=`expr $n \* $n \* 4`
+cat <<EOF
+XXX
+$PCT
+The new\n\
+message ($PCT percent)
+XXX
+EOF
+sleep 1
+done
+) |
+
+$DIALOG --title "GAUGE" --gauge "Hi, this is a gauge widget" 10 70 0