… | |
… | |
229 | =cut |
229 | =cut |
230 | |
230 | |
231 | sub filter_colors($) { |
231 | sub filter_colors($) { |
232 | my ($line) = @_; |
232 | my ($line) = @_; |
233 | $line =~ s/\x1B\[.*?[\x00-\x1F\x40-\x7E]//g; # see ECMA-48 + advice by urxvt author |
233 | $line =~ s/\x1B\[.*?[\x00-\x1F\x40-\x7E]//g; # see ECMA-48 + advice by urxvt author |
234 | $line =~ s/\x03\d\d?(?:,\d\d?)?//g; # see http://www.mirc.co.uk/help/color.txt |
234 | $line =~ s/\x03\d\d?(?:,\d\d?)?//g; # see http://www.mirc.co.uk/help/color.txt |
|
|
235 | $line =~ s/[\x03\x16\x02\x1f\x0f]//g; # see some undefined place :-) |
235 | $line |
236 | $line |
236 | } |
237 | } |
237 | |
238 | |
238 | |
239 | |
239 | # implemented after the below CTCP spec, but |
240 | # implemented after the below CTCP spec, but |