how to use the trackpad to scroll in nano using iterm2, the way it works in


Question or issue on macOS:

I am used to editing in nano, and with it’s easy to quickly move up and down the file using the scroll gesture. I am trying out iTerm2, but now the scroll gesture just makes iTerm scroll upward in history, the nano work area scrolling off the bottom. in Terminal, scrolling in nano simulates moving the cursor up and down, and results in a nice ability to move through the file. How can I get iTerm2 to do this also?

How to solve this problem?

It’s a configurable preference (like xterm’s alternateScroll resource). In iTerm2, that’s in the Advanced tab:
enter image description here

Hope this helps!