Comment 0 for bug 2040080

Revision history for this message
Claudio Leite (leitec) wrote :

tmux 3.3a-4 in 23.10 breaks OSC 52 clipboard access, where tmux sends a terminal control sequence that triggers the terminal emulator to copy its selection to the system clipboard.

This is caused by a broken patch "upstream-bf636d9575.diff" that adds superfluous calls to tparm(). I've attached a corrected version that limits changes to what is described in the patch header.

This is broken upstream in Debian unstable, too. It seems that they're getting ready to move to 3.4 and the package in experimental works, so I haven't reported it there.

Steps to reproduce:

- install tmux 3.3a-4 in mantic
- enable mouse in ~/.tmux.conf: "set -g mouse on"
- run tmux in an OSC 52 capable terminal, such as alacritty
- select text with mouse and check that it is present in the system clipboard

What was expected: text is copied to system clipboard via your terminal emulator
What happened instead: nothing in the clipboard

ubuntu$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 23.10
Release: 23.10
ubuntu$ apt-cache policy tmux
tmux:
  Installed: 3.3a-4
  Candidate: 3.3a-4
  Version table:
 *** 3.3a-4 500
        500 http://us.archive.ubuntu.com/ubuntu mantic/main amd64 Packages
        100 /var/lib/dpkg/status
ubuntu$