Mail Archives: djgpp/1998/10/07/12:57:17
Hans-Bernhard Broeker wrote:
>
> This is incorrect. gotoxy() has next to no influence at all on printf().
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
This short test works for me, both on a pure DOS system, and in a DOS
window under Win95. Note that you must flush the output to insure the
string is actually written to the console at the current cursor
position, and not buffered.
--------------------------------- test.c
----------------------------------
int main(void)
{
gotoxy(1,1);
printf("Hello");
fflush(stdout);
gotoxy(40,12);
printf("World");
fflush(stdout);
gotoxy(65,23);
fflush(stdout);
printf("!!!");
return 0;
}
- Raw text -