Skip Menu |

This queue is for tickets about the Curses CPAN distribution.

Report information
The Basics
Id: 65813
Status: open
Priority: 0/
Queue: Curses

People
Owner: Nobody in particular
Requestors: andrew.pennebaker [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: refresh() runs only after exit() on Mac OS X
My screen shows some Curses text. A while loop updates the text, but the new text doesn't display until I quit Perl. Specs: Curses 1.28 Perl v5.10.0 (darwin) Mac OS X 10.6.6
On Thu Feb 17 02:44:58 2011, mcandre wrote: Show quoted text
> My screen shows some Curses text. A while loop updates the text, but > the new text doesn't > display until I quit Perl.
I presume this while loop is doing something that's supposed to cause a refresh (such as calling refresh()), or you wouldn't be reporting this. The subject says "refresh() runs only after exit()." Does this really mean the Curses refresh() routine doesn't run, or just that the refresh doesn't occur, as seen on the screen? Assuming the latter, I can imagine something in the process buffering output causing this.
Subject: Re: [rt.cpan.org #65813] refresh() runs only after exit() on Mac OS X
Date: Sat, 19 Feb 2011 16:51:09 -0500
To: bug-Curses [...] rt.cpan.org
From: Andrew Pennebaker <andrew.pennebaker [...] gmail.com>
Theory: Refresh screen once each iteration inside the while loop. Practice: The screen is refreshed exactly once, when the program is sent SIGINT via pressing Control+C. On Sat, Feb 19, 2011 at 4:34 PM, GIRAFFED via RT <bug-Curses@rt.cpan.org>wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=65813 > > > On Thu Feb 17 02:44:58 2011, mcandre wrote:
> > My screen shows some Curses text. A while loop updates the text, but > > the new text doesn't > > display until I quit Perl.
> > I presume this while loop is doing something that's supposed to cause a > refresh (such as calling refresh()), or you wouldn't be reporting > this. The subject says "refresh() runs only after exit()." Does this > really mean the Curses refresh() routine doesn't run, or just that the > refresh doesn't occur, as seen on the screen? > > Assuming the latter, I can imagine something in the process buffering > output causing this. > >
From: andrew.pennebaker [...] gmail.com
Theory: Refresh screen once each iteration inside the while loop. Example: while (1) { # ... $con->refresh; } Practice: The screen is refreshed exactly once, when the program is sent SIGINT via pressing Control+C.