In MacOS scrolling through scroll back history with touchpad does not work in "screen" sessions #4617
Replies: 5 comments 1 reply
-
The following codes are output to the console while scrolling in up: 67;66;60M65;66;60M65;66;60M |
Beta Was this translation helpful? Give feedback.
-
@aaronriekenberg In Iterm2 do you have the "Scroll wheel sends arrow keys when in alternate screen mode" advanced option set to "No"? This allows the terminal to scroll out of the "alt mode" display. It also happens to be my preference for tmux/screen behavior and it prevents me from feeling totally at home in Ghostty. |
Beta Was this translation helpful? Give feedback.
-
@simpleapps-public You are correct, I do have "Scroll wheel sends arrow keys when in alternate screen mode" in iTerm 2 set to No. Testing "Scroll wheel sends arrow keys when in alternate screen mode" option in iTerm 2:
No is the default setting in iTerm2, I was not previously aware this option existed. 😄 Does a similar option exist in Ghostty? This is preventing me at least from using Ghostty at the moment. 😄 Thank you! |
Beta Was this translation helpful? Give feedback.
-
I'm not aware of any Ghostty setting that would enable this. You may be able to configure screen to work a little better by enabling its scrollback mode (try ctrl+a esc). This is similar to tmux's mouse mode afaik. Regardless Iterm2's behavior (and even Terminal.app with "Scroll alternate screen" disabled) is my preference. I don't like tmux's built-in scrolling for most use-cases, especially when working on remote servers. It's much nicer to just natively scroll back the buffer, even if that can create inconsistent history when switching between tmux windows. |
Beta Was this translation helpful? Give feedback.
-
One workaround I have found - if I pipe inputs to
With this hack one can even have colored output from jq in less: https://dev.to/sshine/jq-hack-1-colored-less-3fo3
Not perfect but better than nothing. 😄 |
Beta Was this translation helpful? Give feedback.
-
In MacOS I am finding using the touchpad to scroll through scrollback history does not work when running in a "screen" session. This works with iTerm2.
Working steps not using "screen":
cat /usr/share/dict/words
)Not-working steps using "screen":
screen
sessioncat /usr/share/dict/words
)I have also seen same behavior in remote ssh screen and tmux sessions on linux with Ghostty on MacOS
Happy to try to debug more or provide more details if above is not clear.
For me above is something I do often :)
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions