Terminal: Add support for `tmux` Control Mode

Created on 21 Nov 2019  路  7Comments  路  Source: microsoft/terminal

From discussion in #532, #1000:

If we're looking at tmux for things like splits, why not implement Tmux Control Mode like iTerm on MacOS. I switch back and forth between my Macs (with iTerm2) and my Surface Laptop with WSL but WSL2 combined with a _really_ usable terminal (comparable to iTerm2) would really make me consider leaving the Apple camp.

In #532, from @zadjii-msft:

I did not know that Tmux Control Mode even existed. That sounds really awesome, I'm totally on board with trying to make that work somehow.

Was there any further thought put into this? I love tmux control mode - it's literally the only thing keeping me tethered to MacOS at work (since only iTerm supports it, and iTerm is mac-only). If it were implemented, I'd trash my Mac and request a Windows laptop immediately.

I'd love to see it listed as a post-1.0 milestone :)

We should do this.

Area-Extensibility Area-Interop Area-User Interface Issue-Feature Product-Terminal zInbox Bug

Most helpful comment

Control mode isn't documented all that well but it isn't terribly complicated, if you want to do it you can feel free to ask me if you have questions.

All 7 comments

Control mode isn't documented all that well but it isn't terribly complicated, if you want to do it you can feel free to ask me if you have questions.

@nicm Thanks! Maybe we can contribute a bit to the existence of control mode docs while we're at it. :smile:

That would be great. There is an overview in the manual and it is easy enough to play with interactively using "tmux -C new" (instead of -CC). Plus iTerm2 has an implementation of the client side of course.

I was actually just looking at Tmux Control Mode for work (which led me to this issue from Google) - this would be something I would really support! That, and there are already library implementations which might help; as @nicm mentioned iTerm2 implements control mode, and also I found this python library https://libtmux.git-pull.com/en/latest/ which implements the control mode client, too.

I don't think libtmux uses control mode.

I have written a wiki entry about control mode, although it doesn't have an awful lot more than is in the manual at the moment. Still suggestions welcome - https://github.com/tmux/tmux/wiki/Control_Mode.

I would love to have this feature - it's one of the crucial things I miss from my MacOS days.
For those who end up here - push that Like button above! Let's make ourselves heard, surely the product team will notice this! :D

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wkbrd picture wkbrd  路  3Comments

ghvanderweg picture ghvanderweg  路  3Comments

zadjii-msft picture zadjii-msft  路  3Comments

mdtauk picture mdtauk  路  3Comments

xmm1989218 picture xmm1989218  路  3Comments