]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
[mouse] Add xterm-256color support the mouse script (#572)
authorOle-Martin Bratteng <redacted>
Mon, 14 Jan 2019 14:16:45 +0000 (15:16 +0100)
committerbw1 <redacted>
Mon, 14 Jan 2019 14:16:45 +0000 (15:16 +0100)
* Add xterm-256color support the mouse script

scripts/mouse.pl

index 828e2fca7dd299ae85275dc9808744d84ce8cda6..6ee91ca868dc34d1542e3c4bffe4941f16a6bd48 100644 (file)
@@ -23,7 +23,7 @@ use Math::Trig;
 
 use vars qw($VERSION %IRSSI);
 
-$VERSION = '1.0.0';
+$VERSION = '1.1.0';
 %IRSSI = (
        authors         => 'Wouter Coekaerts',
        contact         => 'wouter@coekaerts.be',
@@ -31,7 +31,7 @@ $VERSION = '1.0.0';
        description     => 'control irssi using mouse clicks and gestures',
        license         => 'GPLv2 or later',
        url             => 'http://wouter.coekaerts.be/irssi/',
-       changed         => '2009-05-16',
+       changed         => '2019-01-14',
 );
 
 my @BUTTONS = ('', '_middle', '_right');
@@ -132,7 +132,7 @@ sub UNLOAD {
        mouse_disable();
 }
 
-if ($ENV{"TERM"} !~ /^rxvt|screen|xterm(-color)?$/) {
+if ($ENV{"TERM"} !~ /^rxvt|screen|xterm(-(256)?color)?$/) {
        die "Your terminal doesn't seem to support this.";
 }
 
git clone https://git.99rst.org/PROJECT