[Top][All Lists]

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

Re: GNT, and breakage in windows

From: Sadrul H Chowdhury
Subject: Re: GNT, and breakage in windows
Date: Thu, 10 Aug 2006 09:49:57 -0400

On 8/10/06, Thomas Dickey <address@hidden> wrote:
On Thu, 10 Aug 2006, Sadrul H Chowdhury wrote:

> Now, the problem I have been facing is: the screen often gets scrambled in
> some occasions, usually when the terminal size is large, or when I am moving
> a large window. (http://www.site.uottawa.ca/~schow031/gnt/scrambled.png).

If you're asking ncurses (or other flavors of curses) to update the screen
faster than it can keep up, it'll paint only part of the screen.

Ah, I see! Can that be why the problem disappears when run from within valgrind, because valgrind slows things down?

I have just tried two workarounds to fix this: I put in a "sleep(1);" after each update_panels/doupdate pair. This didn't work. Then I tried to refresh the screen every second (by using g_timeout_add). This also didn't work. Is there any other way I can slow things down so that ncurses can be done updating the screen before it starts doing so again?

Thank you very much for the reply. Cheers,

reply via email to

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