Mouse right click paste support inside a tmux session does not work

787 views
Skip to first unread message

Ignac Vucko

unread,
Jun 25, 2020, 5:44:45 PM6/25/20
to chromium-hterm
SSH to a Ubuntu 20.04 server and left-click mouse to copy text followed by mouse right-click to paste text works perfectly.

If you start a tmux session however, left-click mouse to copy text works, but mouse right-click to paste does not.  A context menu appears momentarily and then disappears.

I tried changing all of the options for 'Mouse right clicks pastes content' and 'Mouse button paste', with the same result.

Anyone know of a workaround?

Mike Frysinger

unread,
Jun 25, 2020, 6:06:26 PM6/25/20
to Ignac Vucko, chromium-hterm
tmux tends to enable mouse reporting and capture all clicks itself, so the terminal will disable its native support for pasting-on-clicks
-mike

--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/97ff39ec-ca05-4f5b-9731-b9384ed4ce8cn%40chromium.org.

Sameer Kochhar

unread,
Jun 25, 2020, 10:39:31 PM6/25/20
to chromium-hterm, Mike Frysinger, chromium-hterm, ignac...@gmail.com
OK, will try to see if there's anyway to override tmux. Thanks

Raza Ahmed

unread,
Oct 28, 2022, 10:17:55 PM10/28/22
to chromium-hterm, Sameer Kochhar, vap...@chromium.org, chromium-hterm, ignac...@gmail.com
were you able to find a solution for this issue?

Jason Lin

unread,
Oct 30, 2022, 7:21:54 PM10/30/22
to Raza Ahmed, chromium-hterm, Sameer Kochhar, vap...@chromium.org, ignac...@gmail.com
You probably have something like `set -g mouse on` in your tmux configuration to enable the mouse mode in tmux. Turning that off will allow the terminal to handle the right click by itself. Alternatively, you can use `ctrl-shift-v` for pasting.



--
Best,
Jason Lin
Reply all
Reply to author
Forward
0 new messages