repo.or.cz
/
hband-tools.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
make getpeername() return the original socket address which before it was intercepted
[hband-tools.git]
/
urxvt-extensions
/
perl
/
linefeed
blob
71096313c196bcd44da4b7fda50e5bed0a3d783d
1
#! perl
2
3
use constant {RXVT_CAPTURE=>1, RXVT_PASS=>()};
4
5
sub on_osc_seq_perl
6
{
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;
14
}
15
16
sub on_user_command
17
{
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
}
24
}
25
26
1;