For a few years now, Terminal.app in macOS has supported mouse-scrolling with the less program, but today I noticed that it is no longer accepting mouse scrolls, and only works with the Up and Down keys now. My installed version of less via macOS is version 487.
What's not working:
less and all other programs that use it are not accepting mouse scrolls. Instead, it scrolls the terminal window. These 'other' programs are:
mangit logdiff
Previously, less would also clear the screen when closing it (q), but now the text remains on the screen.
What I've tried:
- Tested other programs:
vimfor example, still accepts mouse scrolls - Used other Terminal emulators:
lessis not accepting mouse scrolls onHypereither - Tested on another machine over SSH: Connected to one of my VPSes, and used
lessthere within the Terminal app. Mouse-scrolls are working with it. - Used a newer version of less: Installed the latest version (530) of less using Homebrew, but it's not working with mouse scrolls either.
So I'm not sure what's wrong. Would greatly appreciate any help to make less accept mouse scrolls again.