Move text cursor to particular screen coordinate?

c, c++, console, windows

Solution

Use SetConsoleCursorPosition.

There are a bunch of other functions in the same part of the MSDN library. Some of them may be useful too.

Problem

How can I set the cursor at the desired location on the console in C or C++? I remember a function called `gotoxy(x,y)`, but I think its deprecated. Is there any alternative?

Original source

Related problems