Answered my own question. Here's the working line to output to an xterm
compatible title from inside tmux:
> printf '\ePtmux;\e\e]2;%s\e\e\\' "$*"
Part of the issue was the Mac Terminal's built-in update_terminal_cwd function.
This sets the URL for the Terminal application's titlebar. It was (in
I'm trying to use escape sequences to set my xterm-title-compabile terminal's
title from inside tmux. From a non-tmux shell the following works successfully:
> echo -ne "\e]2;Title\e\\"
According to the 1.6 changelog I need to add a DCS sequence (\eP) followed by
"tmux" to passthrough escape seq