make getpeername() return the original socket address which before it was intercepted
[hband-tools.git] / urxvt-extensions / perl / linefeed
blob71096313c196bcd44da4b7fda50e5bed0a3d783d
1 #! perl
3 use constant {RXVT_CAPTURE=>1, RXVT_PASS=>()};
5 sub on_osc_seq_perl
7         my ($rxvt, $osc, $resp) = @_;
8         if($osc eq "linefeed")
9         {
10                 $rxvt->scr_add_lines("\n");
11                 return RXVT_CAPTURE;
12         }
13         return RXVT_PASS;
16 sub on_user_command
18         my ($rxvt, $comm) = @_;
19         if($comm eq "linefeed_and_meta_return")
20         {
21                 $rxvt->scr_add_lines("\n");
22                 $rxvt->tt_write("\x1B\r");
23         }