summaryrefslogtreecommitdiff
path: root/Build/source/utils/dialog/dialog-1.1-20080819/samples/gauge0
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/dialog/dialog-1.1-20080819/samples/gauge0')
-rwxr-xr-xBuild/source/utils/dialog/dialog-1.1-20080819/samples/gauge022
1 files changed, 22 insertions, 0 deletions
diff --git a/Build/source/utils/dialog/dialog-1.1-20080819/samples/gauge0 b/Build/source/utils/dialog/dialog-1.1-20080819/samples/gauge0
new file mode 100755
index 00000000000..c540fac5ba8
--- /dev/null
+++ b/Build/source/utils/dialog/dialog-1.1-20080819/samples/gauge0
@@ -0,0 +1,22 @@
+#!/bin/sh
+# $Id: gauge0,v 1.4 2008/07/22 23:48:30 tom Exp $
+: ${DIALOG=dialog}
+
+PCT=10
+(
+sleep 1
+while test $PCT != 110
+do
+cat <<EOF
+XXX
+$PCT
+The new\n\
+message ($PCT percent)
+XXX
+EOF
+PCT=`expr $PCT + 10`
+sleep 1
+done
+) |
+
+$DIALOG --title "GAUGE" --gauge "Hi, this is a gauge widget" 0 0 0