PrettyPrompt icon indicating copy to clipboard operation
PrettyPrompt copied to clipboard

Automatic scroll to cursor when writing

Open kindermannhubert opened this issue 4 years ago • 2 comments

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 😕.

kindermannhubert avatar Dec 17 '21 15:12 kindermannhubert

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.

kindermannhubert avatar Dec 17 '21 15:12 kindermannhubert

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.

kindermannhubert avatar Mar 12 '23 15:03 kindermannhubert