iTerm2 – scroll less output with mouse

Ruben Verborgh picture Ruben Verborgh · Jan 21, 2013 · Viewed 14.9k times · Source

I just switched from OSX Terminal to iTerm2, and I seem to have lost one piece of functionality. In Terminal, I could scroll through output of the less command with my mouse, because I had installed MouseTerm.

However, when I try scrolling less output in iTerm2, the window's scrollbar moves instead. Strangely, scrolling works as expected with vim.

How can I scroll less output with my mouse in iTerm2?

Answer

Pylinux picture Pylinux · Jun 3, 2016

Now it is implemented in iTerm2 and can be activated by

Settings -> Advanced -> Scroll wheel sends arrow keys when in alternate screen mode and change it to Yes

image of "Scroll wheel sends arrow keys when in alternate screen mode" setting

(defaults write com.googlecode.iterm2 AlternateMouseScroll -bool true still works but it just changes the same setting)