Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Example: In Terminal, I fire up elinks and browser to a web page. I try to use the trackpad scroll gesture and the page up and page down to scroll up and down the web page that elinks is showing me. But instead of scrolling the web page, Terminal scrolls the entire scrollback buffer.

In Ubuntu, elinks will scroll properly when you press page up and page down and the scrollwheel.

This also applies to other console-based POSIX programs like Vim.

Any suggestions on how to get these programs to accept trackpad scroll gestures in OS X?

share|improve this question
up vote 3 down vote accepted

To use a mouse wheel or trackpad to scroll in you'll need to install MouseTerm. After installing MouseTerm you'll need to add set mouse=nicr to your .vimrc file:

echo "set mouse=nicr" >> ~/.vimrc

If you're still not able to scroll in elinks it's possible that it wasn't compiled with GPM (General Purpose Mouse) support. Since elinks isn't a native application to OS X you probably installed through MacPorts or Homebrew. I'd open the "formula" file for elinks /usr/local/Library/Formula/elinks.rb (by default for Homebrew) and verify that --without-gpm isn't anywhere to be found.

Though your question states you want to do this in I'd recommend taking a look at iTerm2 which supports this natively, and has quite a bit more to offer then the stock Terminal app.

share|improve this answer
Thank you I will try this. I've tried iTerm. Despite iTerm's many more features, the fonts in Terminal seem sharper for some reason. Do you notice this as well? – dan May 2 '12 at 22:37
Hey, I turned off antialiasing in iTerm, and it's sharp now. – dan May 2 '12 at 22:39
Thank you. I'll use iTerm now. – dan May 2 '12 at 22:41

Your Answer


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.