开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜