Skip to content

tmux CC support not working with windows WSL (?)

I use iterm2 on my local MacOS and tmux V3.0a on the target (Windows 10 WSL1). When I init a connection with "tmux -CC" I can see something that looks like control traffic. I'd expect that this traffic should be be processed by iterm2 instead of being printed. Also I get no prompt:

ash@mother:/mnt/c/Users/ash$ tmux -CC
1000p%begin 1592235397 281 0
%end 1592235397 281 0
%window-add @2
%sessions-changed
%session-changed $2 2
%window-renamed @2 tmux
%output %2 To run a command as administrator (user "root"), use "sudo <command>".\015\012See "man sudo_root" for details.\015\012\015\012
%output %2 ash@mother:/mnt/c/Users/ash$
%window-renamed @2 bash
%exit

Setup: MacOS Catalina -> SSH -> Windoze 10 -> WSL1 (bash) -> tmux V3.0a

Any ideas why iterm2 does type the control traffic instead of executing it ?

iterm2 Options tried: OFF/ON: Automatic bury the tmux client session after connecting ON: Use tmux profile ON: Status bar shows tmux status bar content

Suggestion from a stack exchange user: https://unix.stackexchange.com/questions/593056/iterm2-tmux-support-not-working-with-windows-wsl-tmux-cc/593064#593064

" Looks like it is trimming off the \033P at the start of the leading DCS sequence (\033P1000p) which iTerm2 uses to detect control mode has been entered. I think you will need to report this to the terminal developers. "

OS iterm2: Mac OS Catalina 10.15.4

OS target: Windows 10 Version 1909 also 2004

WSL target: Tried both, WSL1 and WSL2 with recent Ubuntu 20.04 LTS

iterm2 Version: 3.3.11

plist attached com.googlecode.iterm2.plist

Detailed steps to reproduce the problem:

  1. Start iterm2 on Mac
  2. ssh user@target to Windows, using Windows built in SSH server
  3. Enter command "bash"
  4. Enter command "tmux -CC"

What happened: See log above

What should have happened: I get a prompt

Thanks.

Edited by Roelof Berg