middle mouse button not passed to tmux

Bug #1647507 reported by John
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Terminator
Fix Released
Undecided
Unassigned

Bug Description

terminator 0.98

Terminator should not paste the selection buffer when the child terminal application has enabled mouse tracking.

For example, try the following in urxvt, xterm and terminator and compare the results:

echo -e "\e[?1000h"

This enables mouse tracking.

Now you will find that clicking left or middle mouse will produce characters in the terminal, which encodes mouse events which a terminal application like tmux or vim could consume to do clever things.

Unfortunately in terminator, middle mouse button also pastes the copy buffer as well as the mouse codes, which would probably break a terminal application (it certainly messes things up in tmux).

See the following stack overflow answer for more information about mouse tracking:

http://stackoverflow.com/questions/5966903/how-to-get-mousemove-and-mouseclick-in-bash

FYI, the latest tmux is starting to provide more sophisticated features for handling mouse events, and these are just not going to work in terminator if they use middle mouse.

Related branches

John (lqueryvg)
description: updated
Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

Committed revision 1665.

Note this is the *GTK3* branch.It is pretty obvious what the change is for backporting.

Changed in terminator:
status: New → Fix Committed
Changed in terminator:
status: Fix Committed → Fix Released
John (lqueryvg)
Changed in terminator:
status: Fix Released → Fix Committed
Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

Hi John, care to explain why you flipped this back to Committed? I released 1.91 today, which includes the fix for this. Or are you saying it still doesn't work? If so, then adding a bit of info might be helpful...

Revision history for this message
John (lqueryvg) wrote :

Hi Stephen, I didn't realise I'd done that. How embarrassing.
I'm not very familiar with launchpad and was actually only intending to have a look at the code changes in revision 1665. I must have made an accidental mouse clock somewhere along the way. I'm very sorry.
Hopefully I've just put it back to "Fix Released" state ?

Changed in terminator:
status: Fix Committed → Fix Released
Revision history for this message
John (lqueryvg) wrote :

I meant mouse *click*
(sigh)

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

:-)

Yup you set it right, and if you haven't already found it:

http://bazaar.launchpad.net/~gnome-terminator/terminator/gtk3/revision/1665

and use the expander to display the diff.

Revision history for this message
John (lqueryvg) wrote :

Cool - thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.