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 with tmux with mouse=off (falsely?) detects prompt as having a faux scroll #1194
Comments
|
This is just how faux scrolling works. It works this way in every terminal emulator I've seen. Whenever you are in the alternative scrollback buffer (basically every full-screen terminal application like tmux, htop, vim, ...), faux scrolling is enabled. It's not possible to detect if faux scrolling is desired or not. The expectation is just that when you're in the alternative screen buffer and the application doesn't take care of mouse events, it might be convenient to provide this "hack". It's not a terminal escape sequence or an intentional thing. It's just a convenience thing that's mostly seen in VTE terminals which makes using stuff like less/man a bit simpler. Also please not that using the native alacritty scrollback is not really intended in the alternative screen buffer. According to specification this is an area without any scrollback buffer, so when this works in an application it's kinda against the specification. Just like faux scrolling is unspecified to my knowledge. |
|
I see... your explanation makes a lot of sense, thanks! |
|
Is there anything special needed to get |
|
This is the intended behavior, what else would you expect it to do? |
|
I guess I am misunderstanding the comment above:
I guess I read that as that if I hold down |
|
There is no scrollback buffer in the alternate screen buffer. |
|
For future Googlers, the second workaround (
(sorry for the zombie post) |
Arch Linux, X11, scrollback branch (55ba604)
Use default configuration for zsh, tmux and alacritty.
$ tree).Mouse mode is disabled by default in tmux, but if you want to make sure, press Ctrl+B and type:
Now scroll up and down with the mouse wheel.
Expected: scrollback kicks in.
Actual: alacritty thinks there is a faux scroll and sends arrows up/down, so instead of terminal history being scrolled I see the history of commands being scrolled:
There are workarounds:
.tmux.conf:set -ga terminal-overrides ',*256color*:smcup@:rmcup@'The first two workarounds are not very cool, because I want to use faux scroll when it really exists, for example in
man. Constantly holding Shift when using tmux is annoying.But my main issue is really this: why alacritty thinks that there is a faux scroll in prompt? Why it sends arrow keys to the prompt, causing the scroll of my previous commands?
To be fair, I tried in sakura terminal and it does the same.
If this is could not / should not be fixed in alacritty, do you know perhaps a way to disable faux scroll in the prompt without disabling it completely? Something I could put in
.zshrcor.tmux.conf?The text was updated successfully, but these errors were encountered: