Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I enable the scrolling of "less" output (rather than the terminal window itself) using the scroll wheel on OSX?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

You can't scroll using the mouse wheel without any hacks. One of these makes use of a SIMBL plugin called MouseTerm, which reports the mouse events to your Terminal:

MouseTerm is a SIMBL plugin for Mac OS X's Terminal.app that passes mouse events to the terminal, allowing you to use mouse shortcuts within applications that support them.

To get started, first install SIMBL (MouseTerm won't work without it!). Once you've done that, open the .dmg file, run Install, and restart Terminal.app. To uninstall, run Uninstall from the .dmg.

The FAQ mentions less as a good place to try mouse reporting.

share|improve this answer
    
As an update to this question, I have since learned that "less" belongs to a family of applications called pagers. You can set your default pager in your .bashrc file in most Unices, and there are options outside of less that do support scrolling with the mouse wheel. mcview is one example, but there are others as well. –  user72923 Mar 10 at 2:37

Update:

Ended up just using mcview for my viewer, for which mouse scrolling in the terminal worked out of the box. I've also read that most can support scrolling behavior.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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