From: Ole-Martin Bratteng Date: Mon, 14 Jan 2019 14:16:45 +0000 (+0100) Subject: [mouse] Add xterm-256color support the mouse script (#572) X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e00572cf875952b8e88cc3da9033329bfd53e1d9;p=irssi-scripts.irssi.org.git [mouse] Add xterm-256color support the mouse script (#572) * Add xterm-256color support the mouse script --- diff --git a/scripts/mouse.pl b/scripts/mouse.pl index 828e2fc..6ee91ca 100644 --- a/scripts/mouse.pl +++ b/scripts/mouse.pl @@ -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."; }