ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/remote-clipboard
(Generate patch)

Comparing rxvt-unicode/src/perl/remote-clipboard (file contents):
Revision 1.5 by root, Sun Nov 11 04:08:00 2007 UTC vs.
Revision 1.8 by root, Sun Jun 10 13:58:06 2012 UTC

1#! perl 1#! perl
2
3#:META:X_RESOURCE:%.store:string:the command used to store the selection
4#:META:X_RESOURCE:%.fetch:string:the command used to fetch the selection
2 5
3use Fcntl (); 6use Fcntl ();
4 7
5sub msg { 8sub msg {
6 my ($self, $msg) = @_; 9 my ($self, $msg) = @_;
82} 85}
83 86
84sub on_start { 87sub on_start {
85 my ($self) = @_; 88 my ($self) = @_;
86 89
87 $self->{store_cmd} = $self->x_resource ("remote-selection.store") 90 $self->{store_cmd} = $self->x_resource ("%.store")
88 || "rsh ruth 'cat >/tmp/distributed-selection'"; 91 || "rsh ruth 'cat >/tmp/distributed-selection'";
89 92
90 $self->{fetch_cmd} = $self->x_resource ("remote-selection.fetch") 93 $self->{fetch_cmd} = $self->x_resource ("%.fetch")
91 || "rsh ruth 'cat /tmp/distributed-selection'"; 94 || "rsh ruth 'cat /tmp/distributed-selection'";
92 95
93 push @{ $self->{term}{selection_popup_hook} }, sub { 96 push @{ $self->{term}{selection_popup_hook} }, sub {
94 ("selection => remote" => sub { $self->store }) 97 ("selection => remote" => sub { $self->store })
95 }; 98 };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines