newbie question

Rupert Wood me@rupey.net
Fri Feb 8 01:14:00 GMT 2002


M.A-R. Abdullah wrote:

> I have the following code but the problem is that the screen is
> cleared when getch() is called. How can this be resolved?

I've never had much luck with curses myself, but:

>   printf("This statement doesn't seem to get printed");

to get this to print, you probably have to

    fflush(stdout);

since io is usually buffered until a newline. (On the other hand, I've
no idea if curses intercepts stdio to do its own thing.)

Sorry that's not much help,
Rup.



More information about the Gcc-help mailing list