Is it possible to output such a escape code so that the caret in console moves to proper absolute locatio开发者_StackOverflow中文版n? I've seen something similar on unix console. Is this even possible on the basic and simple Windows console? Thanks
Don't use an escape code, use SetConsoleCursorPosition
COORD C = { 3, 3 };
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), C);
精彩评论