bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dialog problem with --programbox


From: Gary Cowell
Subject: Re: dialog problem with --programbox
Date: Thu, 8 Aug 2013 15:04:01 +0100

That would give the output in one go at the end.

I'm trying to use --programbox to display the live output of a running
pipe (actually the progress log from a database export job).

I think whether or not you see any output at all depends on your
terminal emulator and whether or not it switches to alternate screen
when curses kicks in.  If you don't use the alternate screen (e.g.
turn it off in PuTTY)  then you do see the tail of the output, but
--programbox still should display an 'OK' prompt, if I'm reading the
docs right.

I'm going to try and implement my database job using --prgbox instead,
and call a script with the prgbox command.  It'd be much cleaner with
--programbox though.

Thanks for the suggestion



On 8 August 2013 14:55, Michael D. Setzer II <address@hidden> wrote:
> On 8 Aug 2013 at 14:05, Gary Cowell wrote:
>
> Date sent:              Thu, 8 Aug 2013 14:05:35 +0100
> Subject:                Fwd: dialog problem with --programbox
> From:                   Gary Cowell <address@hidden>
> To:                     address@hidden
>
>> Hello
>>
>> Hope this is the right list, it said on the dialog page to use the
>> ncurses mail list so...
>>
>> I'm using
>>
>> $ ./dialog --version
>> Version: 1.2-20130523
>>
>> This problem exhibits on my builds on AIX 6.1, Linux RHEL 6 and
>> Solaris SPARC 10
>>
>> When using dialog for --programbox like this:
>>
>>
>> ls | ./dialog --programbox 10 20
>>
>
> On my fedora16 machine, I do get output, but it only showed the
> last part of what I expected.
>
> This combination seems to give me what I think you are looking
> for. I have never used the programbox option/
>
> ls >output
> dialog --textbox output 10 20
>
>
>
>
>
>> We don't get any output, the screen flashes really quickly, no OK
>> button is displayed so the output is cleared immediately.
>>
>> My understanding from the manpage is that this should display an OK
>> prompt at program completion.
>>
>> This is how prgbox works:
>>
>> ./dialog --prgbox ls 10 20
>>
>> This does display the OK prompt, but really I need the flexibility of
>> feeding in piped output, hence my desire to use --programbox
>>
>> Am I using it wrong? Or is there a bug?  The 'samples' don't work
>> either (they do the same thing) - the samples scroll the programbox
>> output, then quit without waiting for 'OK' to be chosen.
>>
>> Thanks for any help
>>
>> Gary
>>
>> _______________________________________________
>> Bug-ncurses mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/bug-ncurses
>
>
> +----------------------------------------------------------+
>   Michael D. Setzer II -  Computer Science Instructor
>   Guam Community College  Computer Center
>   mailto:address@hidden
>   mailto:address@hidden
>   http://www.guam.net/home/mikes
>   Guam - Where America's Day Begins
>   G4L Disk Imaging Project maintainer
>   http://sourceforge.net/projects/g4l/
> +----------------------------------------------------------+
>
> http://setiathome.berkeley.edu (Original)
> Number of Seti Units Returned:  19,471
> Processing time:  32 years, 290 days, 12 hours, 58 minutes
> (Total Hours: 287,489)
>
> address@hidden CREDITS
> SETI        15662608.853207   |   EINSTEIN    12631615.299852
> ROSETTA      8161199.389977   |   ABC         16207622.111209
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]