get-cursor-position
get-cursor-position copied to clipboard
[Windows] dwCursorPosition.Y returns row in history
dwCursorPosition.Y returns the current row position in the terminal's history. So if I have a terminal with a history greater than the size of the window, and the current row in the terminal buffer exceeds the size of the window, too, then the current row on the screen will never be accurate.
Any ideas how to work around that problem? I'm having trouble figuring it out. The Window's APIs don't really seem to care about where you land in the terminal window, just the buffer.