I would like to be able to check that the position of the cursor hasn't moved past a certain point. I haven't been able to find anything that gives the position of the text cursor via google. I'm not really sure where else to look.
Use the SetCursorPosition method to specify where the next write operation in the console window is to begin. If the specified cursor position is outside the area that is currently visible in the console window, the window origin changes automatically to make the cursor visible.
In windows you should use windows api. from there, use SetCursorPos() for it. Show activity on this post. Look at ncurses library for creating text-based user interfaces.
Look at the various methods and properties of the Console class. Specifically, using Console.CursorLeft and Console.CursorTop, you can get and set the position of the cursor.
Use Console.CursorLeft and Console.CursorTop
Please look at this MSDN link for more information
http://msdn.microsoft.com/en-us/library/system.console.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With