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

Comparing rxvt-unicode/src/perl/automove-background (file contents):
Revision 1.6 by root, Sat Mar 4 22:36:50 2006 UTC vs.
Revision 1.7 by root, Sat Mar 4 22:39:52 2006 UTC

3sub on_osc_seq { 3sub on_osc_seq {
4 my ($self, $op, $args) = @_; 4 my ($self, $op, $args) = @_;
5 5
6 if ($op == 20) { 6 if ($op == 20) {
7 my ($pic, $commands) = split(/;/, $args, 2); 7 my ($pic, $commands) = split(/;/, $args, 2);
8 warn " pic=$pic commands=$commands";
9 if ($pic !~ /^$/ && $commands !~ /[+\-]/) { 8 if ($pic !~ /^$/ && $commands !~ /[+\-]/) {
10 my ($x, $y) = $self->XTranslateCoordinates ( 9 my ($x, $y) = $self->XTranslateCoordinates (
11 $self->vt, $self->DefaultRootWindow, 10 $self->vt, $self->DefaultRootWindow,
12 0, 0 11 0, 0
13 ); 12 );
14 warn " $x $y \\033]20;$pic;=+$x+$y\\007";
15 $self->cmd_parse ("\033]20;$pic;=+$x+$y\007"); 13 $self->cmd_parse ("\033]20;$pic;=+$x+$y\007");
16 return 1; 14 return 1;
17 } 15 }
18 } 16 }
19 17

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines