-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
[Alacritty v0.7.0-0.13.1] Newlines inserted when scrolling up #434
Comments
Thanks. The problem doesn't seem to arise in my environment.
$ ble/widget/display-shell-version
$ INPUTRC=/dev/null bash --norc --noprofile
$ source out/ble.sh --norc --noinputrc
$ eval "$(starship init bash)"
$ # <-- check if the problem reproduces |
Thank you for the debugging help!
I was not able to reproduce the problem with only plain |
I have to add, I cannot reproduce the problem with plain
|
I'm confused. Let me confirm. Does that mean Bash works with the plain |
$ type -a bash
$ ls -la "/proc/$$/exe" |
Sorry for the confusion. I first though the message from
EDIT: To give you some additional context, this is my |
Okay, I found out that somehow enabling vim mode in
Without these lines in my config, all is well. How would I continue to debug this? |
Another hint, I tried out the change mentioned in this comment to see if anything changes and IT DOES fix the newlines being inserted for me. |
Maybe do you set Or it causes a small delay, but you might set |
I have that starship option set to false. |
Thank you. Hmm, then my guess was not correct. Could you check if the situation changes when you set |
I have tried with |
Sorry for the delay. Currently, I don't have an idea. I'll take a look at your settings again later. |
@teutat3s After some investigations, this finally turned out to be a bug of Alacritty in v0.7.0..0.13.1 (alacritty/alacritty#7725). It is fixed in the latest version of Alacritty. Which version of Alacritty do you use? Could you update Alacritty to the latest version (v0.13.2)? I could reproduce the reported behavior in Alacritty, but it seems like a quirk of Alacritty. Alacritty behaves in a strange way even without ble.sh. In the plain Bash (without ble.sh or any other settings), the following command inserts $ seq 100; tput cuu 3 dl 3 The scrollback becomes like this
I checked the behaviors of the other terminal implementations as follows, but any other terminals do not behave in a way Alacritty does (I also tried
I also noticed that this quirk doesn't exist in Alacritty 0.13.2 (Arch Linux). I built different versions of Alacritty from the source. The strange behavior seems to exist in v0.7.0..0.13.1. I've bisected the behavior change. The strange behavior was introduced in commit alacritty/alacritty@4975be2 and fixed in commit alacritty/alacritty@f1853a0.
alacritty/alacritty@f1853a0 is associated with alacritty/alacritty#7725. |
Nice bug hunting, thanks! I can confirm updating to the latest alacritty version fixes the issue here. 🙌 🎉 |
Thank you! |
ble version:
0.4.0-devel4+27e6309
Bash version:
5.2.15(1)-release (x86_64-pc-linux-gnu)
When scrolling up in bash with
ble.sh
installed, and with previous output above, I can observe two newlines being inserted at the top of the terminal. I am looking for debugging guidance to better understand why this happens - and to find out if this is a problem inble.sh
or something else causing this. If desired, I can try to record a short video to show the problem in action.What I have tried:
Other installed components:
starship
The text was updated successfully, but these errors were encountered: