7939ccb93f
[ci skip]
19 lines
406 B
C
19 lines
406 B
C
#include <stdio.h>
|
|
|
|
int main (int argc, char * argv) {
|
|
printf("I'm going to move the cursor here >");
|
|
fflush(stdout);
|
|
printf("\033[6n");
|
|
fflush(stdout);
|
|
int x, y;
|
|
scanf("\033[%d;%dR", &y, &x);
|
|
printf("\n\nThe cursor was at %d, %d\n", x, y);
|
|
printf("I will now put ◯ where the cursor was.\n");
|
|
char derp[1];
|
|
gets(derp);
|
|
printf("\033[%d;%dH◯\n\n\n\n", y, x);
|
|
|
|
printf("Done!\n");
|
|
return 0;
|
|
}
|