logoalt Hacker News

johnfnlast Monday at 4:06 PM6 repliesview on HN

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 :)


Replies

2oMg3YWV26eKIsyesterday at 3:57 PM

Very cool. Opening the tmux session in a new tab rather than a new window was an improvement that I wanted when I tried this. Here's how to do it: https://stackoverflow.com/a/54756013/22828008

kelsey98765431last Monday at 4:47 PM

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

show 3 replies
tanvachlast Monday at 9:42 PM

Was about the mention this, -CC has been working perfectly for me

pmarreckyesterday at 6:14 AM

work in ghostty yet?

show 1 reply
mwpmaybelast Monday at 4:31 PM

Holy carp.

chromejs10yesterday at 4:00 AM

so THAT's what -CC does...