up vote 4 down vote favorite
2
share [g+] share [fb]

That putty option to select and then right-click to paste in the best invention after the mouse. Is there anyway to make the terminal do this? Hack the source code? Install something?

Are the source code for the mac terminal public available?

-Sergio

link|improve this question

33% accept rate
feedback

6 Answers

up vote 3 down vote accepted

Install SIMBL and then install CopyOnSelect. See here: http://blog.s21g.com/articles/1077

link|improve this answer
This is cool. Already something, but what I really wanted was a: CopyOnSelectAndPaste Like putty! – Sergio Oliveira Jr. Jan 7 '10 at 17:53
As @Arjan said, Terminal can do this: Choose Edit > Paste Selection (or Shift-Comamnd-V) or Middle-Click, the latter of which I assume is what you meant by “right-click” in your original question. – Chris Page Jan 5 at 8:51
feedback

In Terminal, select something and then within the same Terminal window do one of the following:

  • click and drag the selection (a bit; the mouse pointer will change), and release to paste (hit Esc while dragging to cancel)

  • paste using Shift-Command-V

  • paste using the middle mouse button

link|improve this answer
2  
I use Cmd-Shit-V all the time! – Josh Oct 29 '09 at 18:16
LOL. Damn, and I can't edit comments. Shift! – Josh Oct 30 '09 at 16:23
feedback

To answer your 4 questions:

That putty option to select and then right-click to paste in the best invention after the mouse. Is there anyway to make the terminal do this?

No, you can however select the text you want and drag-n-drop your selection to the command prompt.

Hack the source code?

Probably can be done through reverse engineering, but why bother for something so trivial, and the fact that it's illegal :P

Install something?

iTerm as kbisset suggests.

Are the source code for the mac terminal public available?

No but iTerm's is

link|improve this answer
“No, you can however select the text you want and drag-n-drop…” The answer is “Yes”. You can Middle-Click to do the same thing as Edit > Paste Selection. “right-click to paste” is likely a typo; either Sergio meant “middle-click to paste” or he’s using a terminal application with a “Paste Selection” contextual menu command. – Chris Page Jan 5 at 8:48
feedback

iTerm, an alternative to Terminal, can do this.

link|improve this answer
And so can Terminal. Edit > Paste Selection or Middle-Click if you have a three (or more) button mouse. Or drag the text a few pixels and release. – Chris Page Jan 5 at 8:45
feedback

You can launch an X11 server and use xterm. Everything is already in the box.

You can even type xterm& in Terminal.app, and X11 will automatically be launched.

link|improve this answer
feedback

iTerm2 can do this too. http://sites.google.com/site/iterm2home/

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.