35

I am used to editing in nano, and with terminal.app 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?

1 Answer 1

77

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

6
  • 9
    Exactly what I was looking for! Thanks. Apr 28, 2018 at 16:26
  • Works also to scroll inside a screen after pressing CTRL+A ESC Apr 28, 2021 at 8:02
  • I had this set up on my previous MacBook and couldn't for the life of me figure out how to do it on my new one... Thank you sir! Dec 7, 2021 at 13:42
  • Thank you so much, you saved some poor soul today (me) 🙏
    – NiKo
    Apr 11 at 15:04
  • 1
    Oh, I was in a remote screen session, so I think I ran in to superuser.com/a/990887/175529 Jun 24 at 17:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.