Does OS X's terminal app support mouse?

According to this answer over at SuperUser, OS X's terminal app should use Alt+Mouse Click to send mouse events to applications running in the terminal. I tried that with the Midnight Commander, but it does not work. I am running OS X Mavericks.

Is there any way to enable mouse support in the terminal app, short of switching to iterm2 or something like that?


Solution 1:

Indeed, OS X Terminal can receive mouse input through ⌥-clicking:

However, certain Terminal apps don't receive the passed mouse input.


You can install MouseTerm which will pass mouse events to the terminal.

  • 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).
  • Terminal profile integration (with preferences dialog).

It's a SIMBL plugin, so you'll need to install SIMBL to make it work. I recommend installing EasySIMBL instead though.

Solution 2:

As of OS X El Capitan 10.11, Terminal supports Mouse Reporting. You configure application programs to enable it. For example, in Vim use set mouse=a.

Terminal supports reporting three mouse buttons and a scroll-wheel, along with Shift, Meta, and Control modifiers. The Option modifier key maps to Meta (regardless of the “Option is meta” keyboard preference). You can use -Right Click for mouse-button three on a two-button device (which also works for “middle-button paste”, which invokes Edit > Paste Selection ⇧⌘V when Mouse Reporting is not active).

You can use the Fn modifier key when clicking, dragging or scrolling to temporarily bypass Mouse Reporting and interact with the terminal view. You can also use the View > Allow Mouse Reporting menu item to bypass it for longer periods of time or when Fn isn't available.

Solution 3:

iTerm 2 supports all mouse interactions out of the box.