[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: dialog problem with --programbox
From: |
Tim Allen |
Subject: |
Re: Fwd: dialog problem with --programbox |
Date: |
Fri, 9 Aug 2013 09:09:33 +1000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Aug 08, 2013 at 02:05:35PM +0100, Gary Cowell wrote:
> $ ./dialog --version
> Version: 1.2-20130523
>
> This problem exhibits on my builds on AIX 6.1, Linux RHEL 6 and
> Solaris SPARC 10
I don't have any of those platforms available to me, but I'm using the
same version of dialog on Debian Testing.
> ls | ./dialog --programbox 10 20
>
> We don't get any output, the screen flashes really quickly, no OK
> button is displayed so the output is cleared immediately.
To test out my version of dialog, I ran the following command:
for thing in `seq 1 100`; do
echo $thing
sleep 1
done | dialog --programbox 10 20
...which, as you might imagine, prints one number per second,
live-updates the last 8 in a dialog-box, gives you an OK button when
done (no scrollback) and exits when you click it.
Interestingly, if I run the command:
printf 'hello\nworld\n' | dialog --programbox 10 20
...then I get an empty window with an OK button (I suspect the divider
line and the button push the first two lines of output off the top of
the display).
I don't know what might be causing the behaviour you describe, but if
the examples I've pasted above work then I guess there's something wrong
with your invocation. If they also don't work on your systems... I guess
you'll need to keep digging.