1. Brodie Rao
  2. mouseterm


mouseterm /

Filename Size Date modified Message
33 B
832 B
506 B
574 B
4.3 KB
17.9 KB
185 B
2.4 KB
426 B
197 B
573 B
2.9 KB
124 B
980 B
1.2 KB
8.9 KB
1.7 KB
1.1 KB
207 B
5.1 KB
3.2 KB
918 B
410 B


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.



MouseTerm is currently alpha quality software. Some features have not yet been implemented, and there may be bugs in the current implementation.

What works:

  • Mouse button reporting.
  • Mouse scroll wheel reporting.
  • Simulated mouse wheel scrolling for programs like less (i.e. any fullscreen program that uses application cursor key mode).

What's being worked on:

  • A preferences dialog and terminal profile integration.

Frequently Asked Questions

What programs can I use the mouse in?

This varies widely and depends on the specific program. less, Emacs, and Vim are good places to test out mouse reporting.

How do I enable mouse reporting in Vim?

To enable the mouse for all modes add the following to your ~/.vimrc file:

if has("mouse")
    set mouse=a

Run :help mouse for more information and other possible values.

What about enabling it in Emacs?

By default MouseTerm will use simulated mouse wheel scrolling in Emacs. To enable terminal mouse support, add this to your ~/.emacs file:

(unless window-system
  (xterm-mouse-mode 1)
  (global-set-key [mouse-4] '(lambda ()
                               (scroll-down 1)))
  (global-set-key [mouse-5] '(lambda ()
                               (scroll-up 1))))


Download the official development repository using Git:

git clone git://github.com/brodie/mouseterm.git

Run make to compile the plugin, and make install to install it into your home directory's SIMBL plugins folder. make test will install the plugin and run a second instance of Terminal.app for testing.

Visit GitHub if you'd like to fork the project, watch for new changes, or report issues.

JRSwizzle and some mouse reporting code from iTerm are used in MouseTerm. Ragel is used for parsing control codes.


Contact information can be found on my site, brodierao.com.

Thanks to Tom Feist and Scott Kroll for their contributions.