summaryrefslogtreecommitdiffstats
path: root/contrib/dialog/samples/programbox2
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/dialog/samples/programbox2')
-rwxr-xr-xcontrib/dialog/samples/programbox219
1 files changed, 19 insertions, 0 deletions
diff --git a/contrib/dialog/samples/programbox2 b/contrib/dialog/samples/programbox2
new file mode 100755
index 0000000..63f87df
--- /dev/null
+++ b/contrib/dialog/samples/programbox2
@@ -0,0 +1,19 @@
+#!/bin/sh
+# $Id: programbox2,v 1.1 2011/03/02 01:25:31 tom Exp $
+
+. ./setup-vars
+
+. ./setup-tempfile
+
+ls -1 >$tempfile
+(
+while true
+do
+read text
+test -z "$text" && break
+ls -ld "$text"
+sleep 0.1
+done <$tempfile
+) |
+
+$DIALOG --title "PROGRAMBOX" "$@" --programbox "ProgramBox" 20 70
OpenPOWER on IntegriCloud