开发者

Console output - way to let caret jump to columns and rows

开发者 https://www.devze.com 2023-02-19 03:30 出处:网络
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 possibl

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号