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