In the OS X Terminal, we can use the mouse or trackpad to scroll in programs that use the alternate screen, such as less.
This used to be possible in nano as well, both for local sessions as well as ssh'ed into a remote machine.
Scrolling would effectively move the cursor, as if the ↑/↓ keys were used extremely rapidly.
As of OS X 10.10 or 10.11 (not sure which), this no longer works.
It seems that since one of those updates, I am able to position the cursor by clicking, set marks, etc. (i.e. mouse support is enabled and working), but I can no longer scroll.
I know that I can navigate by a whole lot of keyboard commands, but I can scroll a lot faster on my trackpad, and it would also use soft scrolling, as opposed to the whole-page-jumps caused by PgUp/PgDn.
Is there any way I can bring that scrolling functionality back through configuration or either the Terminal or nano?
1 Answer
Okay, it's one of those too-simple-to-try things.
You have to disable mouse support.
In .nanorc, write:
unset mouseOr use EscM to toggle mouse support from within nano.
I hope this saves someone a day of searching.
2