This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: newbie question


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]