1 | #! perl |
1 | #! perl |
|
|
2 | |
|
|
3 | #:META:OSC_PERL:clipboard:man clipboard-osc |
|
|
4 | |
|
|
5 | =head1 NAME |
|
|
6 | |
|
|
7 | clipboard-osc - implement the clipboard operating system command sequence |
|
|
8 | |
|
|
9 | =head1 SYNOPSIS |
|
|
10 | |
|
|
11 | urxvt -pe clipboard-osc |
|
|
12 | |
|
|
13 | =head1 DESCRIPTION |
|
|
14 | |
|
|
15 | This extension implements the clipboard;copy Perl OSC. |
|
|
16 | |
|
|
17 | =cut |
|
|
18 | |
2 | |
19 | |
3 | sub on_osc_seq_perl { |
20 | sub on_osc_seq_perl { |
4 | my ($self, $osc, $resp) = @_; |
21 | my ($self, $osc, $resp) = @_; |
5 | |
22 | |
6 | return unless $osc =~ s/^clipboard;([^;]+)//; |
23 | return unless $osc =~ s/^clipboard;([^;]+)//; |