You are not logged in.

#1 2009-04-20 00:52:39

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

[SOLVED] Copy text from URXVT to another window?

Can this be done? I understand that selecting text copies it and middle-click pastes, but only IN the window. I'm having compiling errors but can't copy the error messages (which are far too large to just re-type).

Help?

Last edited by SomeGuyDude (2009-04-21 14:05:29)


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#2 2009-04-20 00:53:26

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: [SOLVED] Copy text from URXVT to another window?

Select the text, then use middle-click to paste.

When you get to the top, then it will scroll.

Last edited by Lexion (2009-04-20 00:53:58)


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#3 2009-04-20 02:50:13

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Copy text from URXVT to another window?

Selecting text and Ctrl+Shift+C also copies...then use middle click to paste. Has always worked for me.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2009-04-20 04:34:09

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: [SOLVED] Copy text from URXVT to another window?

For Urxvt - create the following little script and call it 'clipboard':  (thanks to Skottish, I believe for this)

#! perl
sub on_sel_grab {
    my $query = quotemeta $_[0]->selection;
    $query =~ s/\n/\\n/g;
    $query =~ s/\r/\\r/g;
    system( "echo -en " . $query . " | xsel -ibp" );
}

and place it in /usr/lib/urxvt/perl/

Now make sure the following line is in your ~/.Xdefaults file:

URxvt*perl-ext-common:      default,matcher,clipboard

Make sure you have xsel installed, restart urxvt and you should be ready for highlight and middle clicking smile

Good luck!
Scott

Last edited by firecat53 (2009-04-20 04:34:52)

Offline

#5 2009-04-20 04:57:56

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: [SOLVED] Copy text from URXVT to another window?

You can also paste with shift+home

Offline

#6 2009-04-20 05:35:24

Zeist
Arch Linux f@h Team Member
Registered: 2008-07-04
Posts: 532

Re: [SOLVED] Copy text from URXVT to another window?

rine wrote:

You can also paste with shift+home

Umm... are you sure you don't mean shift+insert?


I haven't lost my mind; I have a tape back-up somewhere.
Twitter

Offline

#7 2009-04-20 09:18:58

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] Copy text from URXVT to another window?

You also need to keep the window alive from which you copy.

Offline

#8 2009-04-21 12:04:24

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: [SOLVED] Copy text from URXVT to another window?

Zeist wrote:
rine wrote:

You can also paste with shift+home

Umm... are you sure you don't mean shift+insert?

Oh, yes I did smile

Offline

#9 2009-04-21 12:46:38

sygrup
Member
From: Turkey
Registered: 2008-09-17
Posts: 4

Re: [SOLVED] Copy text from URXVT to another window?

Thank you for Firecat53 description.

Best regards.

Offline

#10 2009-04-21 13:13:39

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: [SOLVED] Copy text from URXVT to another window?

None of that worked. At least not really.

I can middle-click paste into leafpad, but only if the urxvt window is focused. Nothing in the above managed to work in transferring text from the urxvt window to this little message board box.

See I don't think you guys are quite understanding me. I need a way to get stuff into my clipboard from urxvt. Middle-click paste doesn't work globally, because middle click has other functions in other windows.

Are any of you guys capable of doing this at your computers right now? Type some gibberish into urxvt and paste it into the "Quick post" box on this page? Because highlight -> middle-click ain't working over here. Even with that script.


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#11 2009-04-21 13:15:37

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: [SOLVED] Copy text from URXVT to another window?

Well, you shouldn't need any script, primary selection clipboard should just work... it does over here


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#12 2009-04-21 13:27:39

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] Copy text from URXVT to another window?

What happens if you select something in Firefox and middle click in the text box?

If that doesn't work, maybe something is wrong with your middle mouse button, what happens if you use shift+insert instead?

Offline

#13 2009-04-21 14:05:04

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: [SOLVED] Copy text from URXVT to another window?

A-hah. There's our issue.

Somehow the "middlemouse.Paste" thing got disabled in Firefox's about:config. No clue how that happened. o_O


And in the midst of such perfection,
I can't help but feel diseased.

Offline

Board footer

Powered by FluxBB