Is there a way to disable scrolling through command history for the Xfce terminal? I don't wish to rely on palm rejection, I'd just like it disabled when I'm using the terminal. Specifically I'm talking about not cycling through previous commands at the prompt when scrolling with mouse/touchpad.
You are describing the feature of VTE (used in XFCE Terminal) which translates wheel-mouse scrolling into up/down cursor-keys when using the alternate-screen. That happens if you are running
screen in something like
xterm. You can avoid that by preventing
screen from using the terminal's alternate screen feature.
For example (see How to disable alternate buffer in GNU screen itself but not for vim, less inside it?), tell
screen that the feature does not exist (by putting this in
termcapinfo xterm ti@:te@
A similar workaround is used for
tmux (see Properly disable terminal capabilities for alternate screen in tmux), putting this in
set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
This translation of scrolling behavior does not appear to be configurable in VTE-based terminals. It is configurable in
alternateScroll (patch #282).
I was just having this same problem using iTerm on my Mac. Whenever I would use the
screen feature I was unable to scroll up/down, super annoying.
To disable the command line history on-scroll, do the following:
Preferencesand click on
Scroll down to the
Mousesection, or search for "scroll"
Scroll wheel sends arrow keys when in alternate screen modeand select No from the dropdown
And you're all set!