Printing in windows console on x,y position
问题 I want to print, in a certain (X,Y) position, on a standard console in windows. I tried to use conio.h, but is deprecated/non-existing. There was the gotoxy(x,y) method that seems to be what I want. I've tried these ways, but it just prints extra characters: printf("%c[%d;%df",0x1B,y,x); printf("\x1B%c[%d;%df",0x1B,y,x); printf("\x1B[%d;%dH", 0x1B, y, x); Thanks in advance. 回答1: The Windows API call to position the cursor in a console is SetConsoleCursorPosition. As someone commented, "curses