bug-ncurses
[Top][All Lists]
Advanced

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

Re: GNT, and breakage in windows


From: Thomas Dickey
Subject: Re: GNT, and breakage in windows
Date: Thu, 10 Aug 2006 10:07:39 -0400 (EDT)

On Thu, 10 Aug 2006, Sadrul H Chowdhury wrote:

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?

There's no simple way - essentially what you'd have to do would be to detect if a refresh was incomplete and tell your application to combine
things, e.g., make a window move by two columns at a time rather than by
one (but of course the input would still "really" be one column).

There's no function defined for this, but one could be written, e.g.,
checking if there are pending changes to a window after a refresh or doupdate is completed.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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