in a Console C# program, is there any method which can send the cursor to a point in console window? for example
System.foo.gotoxy(10,20); System.Console.Write("hello);will write hello in row 10, column 20?
WendellHarper - Dec 06 2020 01:21 PM
WendellHarper - Dec 06 2020 01:14 PM
pindo - Jul 23 2020 01:33 AM
Siten0308 - Jun 20 2019 01:43 PM
johnnylo - Apr 23 2019 07:49 AM
Posted 28 November 2011 - 12:17 AM
System.foo.gotoxy(10,20); System.Console.Write("hello);will write hello in row 10, column 20?
I wrote t.me/cplusplus/203
Posted 29 November 2011 - 05:50 PM
Posted 29 November 2011 - 06:01 PM
Console.SetCursorPosition(5,10);
I wrote t.me/cplusplus/203
Posted 29 November 2011 - 06:53 PM
Posted 29 November 2011 - 08:54 PM
Good catch.I think he meant the console user interface cursor, not the graphical user interface mouse cursor.
Now I wonder about memory management for some of them - for example, the WriteFile () function requires a pointer to a buffer, along with the size of the buffer; not sure about how C# handles strings and buffers.