Mail Archives: djgpp/1996/07/15/14:01:24
Reply to message 4096212 from AC387 AT YFN DOT YSU on 07/11/96 2:39AM
> gotoxy(1,1);
> printf("%d %d",x,y);
conio functions like gotoxy() and stdio functions like printf() are not
compatible under DJGPP because stdout is LINE-buffered. Output
is not flushed to the screen until either the buffer becomes full or a
newline is reached. Under Borland and MS, this is not the case.
To guarantee that your programs using conio functions will work
correctly, you should use the conio output functions like cprintf(),
cputs(), etc. There is a conio function that corresponds to almost
every standard io function. Look up conio functions in the libc
docs for more info. Also look in the *new* FAQ, v2.01, for answers
to exactly your question.
John
- Raw text -