From ae9b658f1cac21af3f03e1e53568e27f4d79464a Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 28 Feb 2026 11:30:31 -0800 Subject: [PATCH] Try workaround from mosh PR #1054 --- tmux.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tmux.conf b/tmux.conf index 37d66fb..0969850 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,8 +1,9 @@ # Enable mouse support set -g mouse on -# Fix copying text inside mosh -set -s terminal-features 'xterm-256color:clipboard' +# Fix copying text inside mosh: force tmux to send OSC 52 with "c;" selection +# type, which is the only format mosh accepts (see mobile-shell/mosh#1054) +set -as terminal-overrides ',xterm-256color:Ms=\E]52;c%p1%.0s;%p2%s\007' # Select next window bind-key Space next-window