With Terminal 2.6.1, when I ssh a linux box, sometimes I don't know why, the two fingers scroll change behavior. Instead of scrolling the command output, it scrolls the command history.
How to exit this mode?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
If you want to exit the history scrolling mode and switch to the command output scrolling mode go to the menu
View -> Hide Alternate Screen.
If you want to exit the command output scrolling mode and switch to the history output scrolling mode go to the menu
View -> Show Alternate Screen.
When you are in history scrolling mode holding
Shift allows you to scroll the command output. The reverse is not true.
This whole behavior can be disabled in
Terminal -> Preferences... -> Profiles -> Keyboard
Scroll alternate screen
Under the checkbox, it's indicated:
When the alternate screen is displayed, send input instead of scrolling the terminal view. Press Shift to temporarily reverse this setting.
I still don't know how the history scrolling mode is sometimes accidentally activated.
I was tracking down the same bug and found the culprit at https://github.com/bpython/bpython/issues/517. If you are using ssh and your connection drops, it will cause scrolling to scroll through your history instead of scrolling the command output. As mentioned in that issue, the fix is to either run the
reset command or quit the terminal and launch a new one.