make getpeername() return the original socket address which before it was intercepted
[hband-tools.git] / urxvt-extensions / perl / printscrollback
blob69498c74d099c3ad9d0c0c396d73fa6e735ee973
1 #!/usr/bin/env perl
3 use constant {RXVT_CAPTURE=>1, RXVT_PASS=>(),};
5 sub on_user_command
7 my ($rxvt, $comm) = @_;
8 if($comm eq "print-scrollback")
10 my $state = urxvt::ShiftMask;
11 my $keycode = 111; # Print
12 $rxvt->key_press($state, $keycode);
13 $rxvt->key_release($state, $keycode);