You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran less /etc/protocols in WSL, then reduced the height of the window by a few lines. winpty didn't handle the resizing correctly:
Presumably it's doing something like this:
mintty shifts the contents of the terminal up the few lines, as well as the cursor.
The console also shifts both content+cursor up, or maybe it doesn't. In any case, less redraws the screen rapidly.
winpty scans for changes and sees that only the last line of the window has changed -- the one that now has the colon prompt.
The winpty Scraper object sends the prompt line to the Terminal object and reports that it's a few lines upwards from where the cursor previously was.
The Terminal object moves the terminal cursor up a few lines and outputs the cursor.
WSL less uses the "alternate screen" VT mode, which sets the console's buffer height to its window height. winpty detects this situation and enters "direct mode". Direct mode makes no attempt to keep the scrollback valid, so this is easy to fix by invalidating the scraper's cell buffer on resize.
The text was updated successfully, but these errors were encountered:
I ran
less /etc/protocols
in WSL, then reduced the height of the window by a few lines. winpty didn't handle the resizing correctly:Presumably it's doing something like this:
less
redraws the screen rapidly.Scraper
object sends the prompt line to theTerminal
object and reports that it's a few lines upwards from where the cursor previously was.Terminal
object moves the terminal cursor up a few lines and outputs the cursor.WSL less uses the "alternate screen" VT mode, which sets the console's buffer height to its window height. winpty detects this situation and enters "direct mode". Direct mode makes no attempt to keep the scrollback valid, so this is easy to fix by invalidating the scraper's cell buffer on resize.
The text was updated successfully, but these errors were encountered: