I'm trying to get the position of the mouse cursor, relative to the console window, with the upper left corner of the console window being point 0, 0. I've gotten the cursor position, but now I need the position of the console to make the position relative to the window.
How would I get the position of the console window? I will need to do this many times a second, so preferably it would not be api call heavy.