From: Samuel Lijin Date: Sat, 6 Mar 2021 02:26:50 +0000 (-0800) Subject: Add support for TERM=tmux-256color X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e2ec5df8c657160e7b4281633d66b47e98a65e75;p=irssi-scripts.irssi.org.git Add support for TERM=tmux-256color --- diff --git a/scripts/mouse.pl b/scripts/mouse.pl index 27e45e5..d9debc7 100644 --- a/scripts/mouse.pl +++ b/scripts/mouse.pl @@ -23,7 +23,7 @@ use Math::Trig; use vars qw($VERSION %IRSSI); -$VERSION = '1.1.1'; +$VERSION = '1.1.2'; %IRSSI = ( authors => 'Wouter Coekaerts', contact => 'wouter@coekaerts.be', @@ -31,7 +31,7 @@ $VERSION = '1.1.1'; description => 'control irssi using mouse clicks and gestures', license => 'GPLv2 or later', url => 'http://wouter.coekaerts.be/irssi/', - changed => '2019-01-14', + changed => '2021-03-05', ); my @BUTTONS = ('', '_middle', '_right'); @@ -132,7 +132,7 @@ sub UNLOAD { mouse_disable(); } -if ($ENV{"TERM"} !~ /^rxvt|screen|xterm(-(256)?(color|kitty))?$/) { +if ($ENV{"TERM"} !~ /^rxvt|screen|xterm|tmux(-(256)?(color|kitty))?$/) { die "Your terminal doesn't seem to support this."; }