The Computer Oracle

How can I copy on select in the OS X Terminal like PuTTY does?

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Puzzle2

--

Chapters
00:00 How Can I Copy On Select In The Os X Terminal Like Putty Does?
00:25 Answer 1 Score 10
00:33 Answer 2 Score 5
01:07 Answer 3 Score 57
01:30 Accepted Answer Score 12
01:57 Thank you

--

Full question
https://superuser.com/questions/62609/ho...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #terminal #copypaste

#avk47



ANSWER 1

Score 57


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)

  • or: paste using Shift-Command-V

  • or: paste using the middle mouse button




ACCEPTED ANSWER

Score 12


Install SIMBL and then install TerminalCopyOnSelect.

  • At first, you should install SIMBL.
  • Download the zipped plugin file I mentioned above and expand it.
  • Copy the extracted file "TerminalCopyOnSelect.bundle" to the plugin directory which is located at ~/Library/Application Support/SIMBL/Plugins/
  • Terminate all processes of Terminal.app and restart it.



ANSWER 3

Score 10


iTerm, an alternative to Terminal, can do this.




ANSWER 4

Score 5


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