Updated to support tmux passthrough.