This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: newbie question
- From: "Rupert Wood" <me at rupey dot net>
- To: "'M.A-R. Abdullah'" <mara2 at hermes dot cam dot ac dot uk>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 8 Feb 2002 09:14:29 -0000
- Subject: 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.