Is there a native option (ie. without installing extra soft/package/plugins) to enable mouse support in the Terminal app?

Actually, I'm using a lot vim with the option set mouse=a (activating mouse features).

But it seems that Terminal don't support all xterm's features.

It appears (after some googling) that Terminal had once the mouse support, but I wonder where did it go.

N.B: I really want mouse support in Terminal, not only for vim, so please, don't suggest MacVim :]

link|improve this question
What does xterm support that Terminal doesn't? Copy-on-highlight and middle-paste? – Ignacio Vazquez-Abrams Mar 28 '10 at 8:44
The mouse reporting. It's the real mouse support. The copy-on-highlight, middle-paste, etc. are not really related to Terminal as far as I know. – avetis.kazarian Mar 28 '10 at 9:25
1  
copy-on-highlight and middle-paste ate Terminal related - in that Terminal does not do them - you could try iTerm for those – Mark Mar 28 '10 at 9:53
@Mark: I checked it and liked it. Though Terminal handles far better bold characters. Anyway, thanks. – avetis.kazarian Mar 28 '10 at 11:32
I still don't understand what you'd expect from mouse support (other than copy/paste, which is supported -- see superuser.com/questions/62609/…). Like: what do you expect when running ls and then positioning the mouse somewhere in that output? – Arjan Mar 28 '10 at 20:33
show 1 more comment
feedback

migrated from stackoverflow.com Mar 28 '10 at 20:05

This question came from our site for professional and enthusiast programmers.

4 Answers

up vote 20 down vote accepted

I found the answer!

A friend told me the trick, it's so easy that I'm ashamed.

Just press alt key and click! (with mouse support previously activated in vim)

link|improve this answer
2  
I’ve been an OS X power user for what feels like half a century, and I never knew this. I am extremely impressed. I wish I could give you a hundred up votes instead of one. – elliottcable Nov 21 '11 at 16:42
feedback

It appears that on OS X 10.4 (I'm not sure about 10.5) you can enable mouse support. Open the Terminal, then click on Window Settings. Click Emulation from the drop down list and then check the option "Click to position Cursor".

link|improve this answer
1  
Actually, there's nothing such as "Window Settings" in Terminal preferences on 10.5 neither on 10.6. All you can to in the "Window" tab is change the background color, scroll size, title and window size. – avetis.kazarian Mar 28 '10 at 9:20
1  
It must be only on 10.4 then... – Joe D Mar 28 '10 at 9:57
+1 I have it on 10.4.11 – sixtyfootersdude Mar 30 '10 at 3:49
1  
This isn't exactly mouse support. What this will do is allow you to option click a part of the terminal, and Terminal.app will calculate how many line up/down/left/right characters are needed to move the cursor there, and then type them. Very useful but not what the OP wanted I don't think. – Josh Apr 2 '10 at 22:27
feedback

Note that Mac OS X does have xterm in addition to Terminal.app. I couldn't tell from your question if you were aware of this. But if you have the X11 package installed you can fire up an xterm window and mouse support works just fine.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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