How To Fix Mouse Scrolls the Command Line History Instead of the Window Buffer in Terminal

In the macOS Terminal, my mouse scroll wheel would magically start scrolling the command line history instead of the window buffer scroll bar on the right to show window history.
This happened when an SSH session was disconnected or timed out.
The fix is to run the reset
command.
Leave Your Comment
All fields marked with "*" are required.