Group: Console - Library: kernel32
The SetConsoleCursorPosition function sets the cursor position in the specified console screen buffer.
Creating a console window for Visual FoxPro application
BOOL SetConsoleCursorPosition(
HANDLE hConsoleOutput,
COORD dwCursorPosition
);
DECLARE INTEGER SetConsoleCursorPosition IN kernel32;
INTEGER hConsoleOutput,;
SHORT x,;
SHORT y
hConsoleOutput [in] Handle to a console screen buffer.
dwCursorPosition [in] A COORD structure that specifies the new cursor position.
If the function succeeds, the return value is nonzero.
Normally I would declare COORD dwCursorPosition as STRING @dwCursorPosition. It did not work this way. Fortunately SHORT, SHORT does the job.
See also: GetConsoleCursorInfo, GetConsoleScreenBufferInfo, ReadConsole, WriteConsole.