[lug] curses!

Lori Reed lorireed at lightning-rose.com
Mon Nov 7 16:36:45 MST 2011

On 11/07/2011 12:12 PM, Doug Pintar wrote:

> ...foiled again.
> Gang,
> I'm trying to use ncurses (I know, I know, hopelessly old-school, but
> I'm trying to model something else) and am having a problem. I create a
> window, write a bunch of stuff to it, refresh it, and nothing shows up
> on my xterm. This is using Linux Mint 11 with one of its standard
> "terminal" windows. If I do a getch() first and wait for a character to
> be entered before doing the writing to the window, everything displays
> fine. Ideas? I can't find anything in the documentation that suggests
> why this might happen.

Long, long, ago I solved a similar problem on a different system (QNX2) 
by doing the equivalent of an ungetch() and a getch(). As always, YMMV.


More information about the LUG mailing list