bug-ncurses
[Top][All Lists]
Advanced

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

Re: dialog problem with --programbox


From: Thomas Dickey
Subject: Re: dialog problem with --programbox
Date: Thu, 08 Aug 2013 16:06:26 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Thu, Aug 08, 2013 at 03:04:01PM +0100, Gary Cowell wrote:
> 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.

man dialog

       --keep-tite
              When built with ncurses, cdialog normally checks to see if it is 
running in an  xterm,  and  in  that  case
              tries  to suppress the initialization strings that would make it 
switch to the alternate screen.  Switching
              between the normal and alternate screens is visually distracting 
in a script  which  runs  cdialog  several
              times.  Use this option to allow cdialog to use those 
initialization strings.

If it's not built with ncurses, it cannot do that.

Alternatively, use a terminal description where the smcup/rmcup capabilities 
are empty.

> 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
> >
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-ncurses

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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