Macos – Trackpad scroll in Yosemite’s terminal broken, now only showing command history

macososx-yosemiteterminal

Since upgrading to OS X Yosemite I have been experiencing this sporadic issue where I suddenly lose the ability to scroll up/down in terminal using my trackpad. Scrolling on the trackpad will instead cycle through all of my previous commands.

I've read about this behavior with vi in Yosemite, but I've not been able to use any of the fixes that they have mentioned (e.g. holding Shift and then scrolling).

Is there a way to get around this or switch between different modes? It is incredibly irritating when it happens.

Best Answer

This issue is not specifix to OS X Yosemite or OS X in general, this happens to all the terminals when a certain control sequence is issued.

It is very likely that this will go away after you run

$ reset

Here is an excerpt from man tset:

When invoked as reset, tset sets cooked and echo modes, turns off cbreak and raw modes, turns on newline translation and resets any unset special characters to their default values before doing the terminal initialization described above. This is useful after a program dies leaving a terminal in an abnormal state. Note, you may have to type

       <LF>reset<LF>

(the line-feed character is normally control-J) to get the terminal to work, as carriage-return may no longer work in the abnormal state. Also, the terminal will often not echo the command.

Related Question