-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminal sticky scroll incorrect identifies the top of buffer as a command #201260
Comments
I think I've run into this same issue for couple of weeks now. Below is video where previous command jumps on top the current cursor position. I think this only happens on Bash as I've been unable to reproduce it on zsh. Really happy to find out that disabling "Terminal: Sticky scroll" fixes this! I guess that feature was enabled by default couple of weeks ago? vscode-terminal-sticky-scroll.mp4 |
@AriPerkkio it should be enabled by default only in insiders currently. |
I have also seen this happen occasionally, the repro seems to not be simply filling the scrollback unfortunately. Closing until we get good steps |
I can reproduce this constantly with following script: #!/bin/bash
var=""
for i in {1..50000}
do
var+="\n line"
done
echo -e "$var" Save script as $ sh repro.sh
# 1. Wait for script to finish.
# 2. Press CTRL+L or what ever combination your computer registers for clearing the terminal.
# 3. Terminal should be clear now.
$ ls
$ ls
$ ls
# Output is not visible terminal-scroll-repro.mov |
@AriPerkkio perfect thanks, looks like clearing is confusing the current command since the cursor moves upwards. |
I want to fix |
Maybe the root cause: #166864 |
I had a very long terminal whose lines reached the terminal's max limit, and then had an ugly sticky scroll state:
The text was updated successfully, but these errors were encountered: