On first glance, this works great, it doesn't clobber the icon name and the
window title name is set correctly.
However, now when I ssh into another machine, the icon name (in the
terminal tab) doesn't update to the name of the machine I connected to,
while the window title does.
Anyhow, thanks f
Hi Nicholas,
Thanks so much for your reply.
I'm closer, but still not getting it. Right now, I have in my ~/.tmux.conf:
set-option -g set-titles on
set-option -g set-titles-string "#T [tmux #I: #W]"
set-option -g terminal-overrides "*:tsl=\e]2;,*:fsl=\a"
But it gives me:
computer_name ~ [tmux
When I do that, I get:
computer_name ~ [tmux 0: bash]007
in the window title, and also:
?25l
in the terminal. Any other hints? Or do you think this may be a bug with
the terminal I'm using?
Thanks.
On Sun, Sep 30, 2012 at 6:40 PM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:
> Cha
Try \\007.
On Sun, Sep 30, 2012 at 07:42:15PM -0400, Alan wrote:
>When I do that, I get:
>
>computer_name ~ [tmux 0: bash]007
>
>in the window title, and also:
>
>?25l
>
>in the terminal. Any other hints? Or do you think this may be a bug with
>the terminal I'm using?
Change \a to \007.
On Sun, Sep 30, 2012 at 02:58:54PM -0400, Alan wrote:
>Hi Nicholas,
>
>Thanks so much for your reply.
>
>I'm closer, but still not getting it. Right now, I have in my
>~/.tmux.conf:
>
>set-option -g set-titles on
>set-option -g set-titles-string "#T [
You can control what escape sequences tmux uses to set the title by
changing the tsl and fsl terminfo entries (with tmux terminal-overrides
option or a custom terminfo). By default it uses tsl=\e]0; which is
the xterm sequence to change icon name and window title, I suspect you
want to change that
I've been using something like "\e]1;TAB_NAME\a" in my PS1 environment
variable to set my terminal emulator's tab name.
I use something like "\e]2;WINDOW_TITLE\a" in my PS1 to set the terminal
emulator's titlebar name.
When I use tmux, I've been using:
set-option -g set-titles on
set-option -g s