Hello!

I use the following perl script to copy the selected text in urxvt into the
clipboard and vica versa.

#! /usr/bin/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" );
}


It works normally, but there is a situation where it can't work, but when i
restart urxvt terminal, it works again. When it can't work, I experience
that if I select a text or using ctrl-insert it can't copy it into the
clipboard, I can't paste into the web browser e.g, or into other
application. I looked for information at the side of perldoc perlipc and
opening pipe, but i'm newbie in it really, please help :)



Best Regards,
Laszlo Papp
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to