/usr/lib/urxvt/perl/clipboard-osc is in rxvt-unicode 9.14-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #! perl
sub on_osc_seq_perl {
my ($self, $osc, $resp) = @_;
return unless $osc =~ s/^clipboard;([^;]+)//;
if ($1 eq "copy") {
my $text = $self->selection ();
$self->selection ($text, 1);
$self->selection_grab (urxvt::CurrentTime, 1);
}
1
}
|