how do I move cursor to a certain spot on the screen (x,y) ?
how do I move cursor to a certain spot on the screen (x,y) ?
Try this
Code:void gotoxy(int x, int y) { printf("\033[%d;%dH", y, x); fflush(stdout); }
this didn't work
#include <stdio.h>
int x = 20;
int y = 20;
void gotoxy( int x, int y);
main()
{
gotoxy(x,y);
}
void gotoxy(int x, int y)
{ printf("\033[%d;%dH", y, x);
fflush(stdout);
printf("hi");
}
linux
using gcc
no idea what you are talking about.
It depended on terminal emulation but it did work for a vt100 terminal