PrettyPrompt
PrettyPrompt copied to clipboard
Automatic scroll to cursor when writing
When I scroll down so the cursor is out of the window and start typing, window should scroll back to the cursor.
Problem here is that Console.SetWindowPosition and Console.WindowTop setter are only supported on Windows 😕.
Ok, now I see that a usable solution could be just to call
Console.CursorTop = Console.CursorTop;
which brings a line with the cursor into the view.
Also when I scroll up and then start writing (debug assert fails here) the view already goes back to the current cursor position, but there is not enough space for intellisense.