Comment by johnfn
17 hours ago
Guys, did you know about tmux control mode? It tells the host terminal to treat tmux tabs as actual tabs in the terminal. That means that things like scrollback, tab navigation, copy paste, keyboard shortcuts, etc are all handled natively, and you can visually see all your tmux tabs! It doesn't have great support across all terminals, but it does work great in iTerm 2.
Try `tmux -CC` in iTerm.
For a tmux novice like me, this was a total game changer :)
this is the only reason i use a mac and in a decade no open source linux terminal has ever implemented this to my knowledge
I have in https://github.com/lmorg/ttyphoon
I actually don’t like control mode much though. It’s a terrible protocol. Absolutely abysmal design which leads to a plethora of edge case bugs.
At some point I’ll replace tmux control mode entirely but for the moment it solves the immediate problem.
interesting, i am trying to install it to give it a try. the features in ttyphoon look very promising.
unfortunately the build now fails with "frontend.go:39:12: pattern all:frontend/dist: no matching files found"
i am also a bit taken aback by the many dependencies. with heightened risk of supplychain attacks and dependency failures that feels a bit scary.
1 reply →
The control mode feature was implemented by the developer of iTerm2 for iTerm2: https://github.com/tmux/tmux/wiki/Control-Mode
Wezterm has some support for it on nightly.
Was about the mention this, -CC has been working perfectly for me
work in ghostty yet?
so THAT's what -CC does...
Holy carp.