Trent W. Buck wrote:
> It seems that tmux is more clever than I am.
> 
> I open a new window (running bash).  Therein, I run emacs -Q -f ielm.
> At this point, tmux says the title is "emacs".  Good!  Now, I attempt to
> have emacs set the window title to something more meaningful than
> "emacs", such as the name of the file being edited.
> 
>    ELISP> (send-string-to-terminal "\ekEĥoŝanĝo ĉiuĵaŭde, Γειά σας, שלום, 
> Здравствуйте!\e\\")
>    nil
>    ELISP>
> 
> Hooray, it worked.  And unlike Screen, it got Unicode right!  But wait;
> after less than a second, something has set the window title back to
> "emacs".  This is not what I want!
> 
> My bash PS1 includes the Screen shelltitle escape sequence (case $TERM
> in (screen*) PS1="\[\134\033k\033\134\015\]$PS1";; esac) so I tried tmux
> neww "emacs -Q -f ielm" but the new window exhibited the same behaviour.

Yeah, tmux's automatic renaming doesn't rely on those escape sequences
(it supports them - not sure about the "magic" empty one from above,
though); instead, it relies on OS-specific means to determine the name
of the foreground process on the tty.

You can turn off the automatic retitling on a particular window with the
"set-w automatic-rename off" command; to disable it in the global
settings, add -g.

Renaming a window manually will also disable the automatic renaming.

-- 
Micah J. Cowan
http://micah.cowan.name/

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to