Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use the trackpad to scroll in nano using iterm2, the way it works in terminal.app?

Tags:

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?

like image 945
libbynotzoey Avatar asked Apr 25 '18 15:04

libbynotzoey


People also ask

How do I enable scrolling on my Nano?

Use the Alt-M key combination to toggle between using the terminal's mouse services and nano's built-in mouse services.

How do I scroll up and down in Terminal Mac?

Holding fn + up or down arrow, scroll backward or forward through the terminal history. It scrolls by one whole page for whatever the size of the terminal window at the time.


1 Answers

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

like image 162
Thomas Dickey Avatar answered Sep 19 '22 14:09

Thomas Dickey