Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 09-17-2002, 01:44 PM   #1
hazmat
Prospect
 
Join Date: Sep 2002
Location: Brooklyn, NY
Posts: 9
Jaguar Copy on select in Terminal?

One thing that always screws me up is that selected text in Terminal is not copied automatically. Anyone know of any way to do this? I haven't figured it out yet, but since OS X allows swapping of caps lock and control, I wonder if maybe there's a hidden function for this.

Thanks.


-Ken
hazmat is offline   Reply With Quote
Old 09-17-2002, 01:56 PM   #2
hayne
Moderator
 
Join Date: Jan 2002
Location: Montreal
Posts: 29,278
If you mean that you need to use Cmd-C to copy the selected text to the clipboard, that is nothing unusual - it's the same in all Mac applications.
Perhaps you are used to X Window apps where you can select then paste with the middle mouse button. The Mac way requires more keypresses (or mouse clicks if you use the Edit menu) but it is more versatile.
hayne is online now   Reply With Quote
Old 09-17-2002, 02:14 PM   #3
hazmat
Prospect
 
Join Date: Sep 2002
Location: Brooklyn, NY
Posts: 9
I know about Mac clipboards. And Unix. And Windows. A lot of telnet/ssh clients for Windows have copy-on-select options. I would like to see that in Terminal.app, or was hoping to find some hack to do that. A lot of non-standard things are possible. In one of the system files you can add a few lines to swap caps lock and control.
hazmat is offline   Reply With Quote
Old 09-17-2002, 02:21 PM   #4
blb
All Star
 
Join Date: Jan 2002
Location: CO, USA
Posts: 886
My gut feeling is that this would require some changes to the Terminal source, as the window would have to do a pasteboard copy on highlight.
blb is offline   Reply With Quote
Old 09-17-2002, 02:39 PM   #5
mervTormel
League Commissioner
 
Join Date: Jan 2002
Posts: 5,536
Jaguar new behavior for 10.2 shell?

if you select text in the shell, then click-drag the selection, the cursor modifies to cursor+ and if you release, your selection is pasted.

not exactly copy-on-select, more of a copy/paste-on-drag.

care must be exercised with a bare command line and copying newlines.

you can cancel this behavior by holding control or option and releasing the selection, or by dragging the selection to the menubar and realeasing it.

someone might check if this is a hint at the main site, and if not, may submit it for non-forum trollers.
mervTormel is offline   Reply With Quote
Old 09-17-2002, 03:05 PM   #6
hayne
Moderator
 
Join Date: Jan 2002
Location: Montreal
Posts: 29,278
Paste Selection

If you want to paste the selected text immediately (as opposed to saving it for later), you can use the Terminal's "Paste Selection" command - see the Edit menu.
hayne is online now   Reply With Quote
Old 09-17-2002, 04:04 PM   #7
hazmat
Prospect
 
Join Date: Sep 2002
Location: Brooklyn, NY
Posts: 9
Re: Paste Selection

Quote:
Originally posted by hayne
If you want to paste the selected text immediately (as opposed to saving it for later), you can use the Terminal's "Paste Selection" command - see the Edit menu.

I have 'paste' assigned to the middle mouse button. But hmmm, I'll look into that when I get home. Run Win2k at work. I hope there's a key combo to I can map it to a mouse button or combo.

mervTormel: Thanks. That sounds interesting. I'll check that out. I hate having to wait to get home just to try things like this.
hazmat is offline   Reply With Quote
Old 09-17-2002, 04:23 PM   #8
hayne
Moderator
 
Join Date: Jan 2002
Location: Montreal
Posts: 29,278
Paste Selection keyboard shortcut

The keyboard shortcut for Paste Selection is Shift-Cmd-V.
hayne is online now   Reply With Quote
Old 09-17-2002, 04:32 PM   #9
hazmat
Prospect
 
Join Date: Sep 2002
Location: Brooklyn, NY
Posts: 9
Re: Paste Selection keyboard shortcut

Quote:
Originally posted by hayne
The keyboard shortcut for Paste Selection is Shift-Cmd-V.

Oh, very cool. Thinking about that, it's a pretty cool way to do a sort of dirty copy-on-select, but only for within the terminal. I have to see and decide if it ends up being more confusing than it's worth between the terminal and other apps that I might want to copy text into from the terminal.

Was Paste Selection in 10.1 as well?
hazmat is offline   Reply With Quote
Old 09-17-2002, 04:37 PM   #10
osxpez
Major Leaguer
 
Join Date: May 2002
Location: Sweden
Posts: 282
Couldn't the middle mouse button be bound to Paste selection?
__________________
/PEZ
osxpez is offline   Reply With Quote
Old 09-17-2002, 04:51 PM   #11
hazmat
Prospect
 
Join Date: Sep 2002
Location: Brooklyn, NY
Posts: 9
Quote:
Originally posted by osxpez
Couldn't the middle mouse button be bound to Paste selection?

Absolutely. That's why I asked if there was a key combo for it.
hazmat is offline   Reply With Quote
Old 09-17-2002, 08:41 PM   #12
blb
All Star
 
Join Date: Jan 2002
Location: CO, USA
Posts: 886
Re: Re: Paste Selection keyboard shortcut

Quote:
Originally posted by hazmat
...
Was Paste Selection in 10.1 as well?

Nope, that and merv's trick aren't possible in 10.1.
blb is offline   Reply With Quote
Old 09-18-2002, 12:21 AM   #13
hazmat
Prospect
 
Join Date: Sep 2002
Location: Brooklyn, NY
Posts: 9
Wow, that select and drag will come in REALLY useful. Thanks for the tip, merv! As far as Paste Selection, unfortunately it's not good enough for me and wore out really quickly. It's too limiting to the one terminal window. Can't paste outside the one, and can't copy the clipboard in. No good for a mouse button mapping. As far as dragging selected text, the only thing about dragging it to another terminal window is that it would be nice to have the other window pop to the front, to see where you will be pasting, you know?
hazmat is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.