Open kit494way opened 9 months ago
My guess is that this was related to redrawing the prompt with every keystroke, which reedline also probably shouldn't be doing.
On Wezterm on Windows I don't think it matters, it always repeats the prompt with every keystroke.
This appears to be a separate pathology. Yes we blindly redraw but @kit494way diagnosed that with everything on line 0 instead of overdrawing the previous content it moves the "paper" ahead. This would likely be something in the logic that initializes the prompt position.
This appears to also require that the prompt spans multiple lines for the problem to arise:
Here manually scrolling up after Ctrl-L
with my single line prompt
This problem appears to arise with specific terminal applications. I can not reproduce with Windows Terminal. With wsltty, I can reproduce the problem even when the prompt spans multiple lines.
That's why I think this is similar to WezTerm on Windows. It's something to do with the pty iirc but I think the main culprit is nushell drawing the prompt on ever character. There may be more information on issues here with WezTerm in the body.
I can't even get wsltty to work right now. With WSL/g these work fine. So, I think it's the windows side like I mentioned above. kgx works alacritty works wezterm works
Platform Windows 11 WSL2 Ubuntu 20.04, Terminal software wsltty 3.5.1
Describe the problem you are observing.
Steps to reproduce
clear
to make prompt starting row 0.Screenshots/Screencaptures