tmux names are a not well understood feature it seems. A few details… #T (Pane Title) is not used anywhere by default. You can manually add it to the status line. #W (Window Name) is what's displayed in the status line by default.
These names can be set in tmux or using escape sequences. The tmux window name is set with printf '\ek%s\e\\' "Window Name" The pane title is the same as the xterm set terminal tab name sequence; you can use a single command to name your pane or terminal tab (depending on whether you're in tmux or not). printf '\e]2;%s\e\\' "My Pane Title or Term Title" Finally, since tmux uses the title sequence for panes you'll need a different (DCS) sequence to pass through a terminal tab title. printf '\ePtmux;\e\e]2;%s\e\e\\' "Terminal Title" I use these features in a few different ways via a bash alias functions… * Terminal title to "tmux - ${HOSTNAME}" upon entering tmux. * Pane Title (#T) to "ssh-user@ssh-host" and Window Name (#W) to "ssh host…" (abbreviated) when using ssh. Keeps the status line short. * Reset the Pane Title (#T) to default after exiting vim, which is configured to show the current file in the #T field. * I have a tmux window with several panes open tailing logs on several hosts. I set the Pane Title to the name of each log being viewed (in case I forget!). These are some practical uses for Pane Titles and Window Names I've found. I'm sure there are more. -Adrian On Dec 18, 2012, at 1:42 AM, Thomas Adam <tho...@xteddy.org> wrote: > On 18 December 2012 02:36, Mark Volkmann <r.mark.volkm...@gmail.com> wrote: >> I'm trying to understand the difference between #T and #W. > > #T is the pane title, #W the window title. > > The pane title will default to the hostname, or if that's not set the > empty string -- when creating the pane (screen.c:screen_init()). The > pane title can still be changed after this point though. > >> The PragProg tmux book says #T is the window title and #W is the window >> name. > > Yet another example from that book which is inaccurate then. I'd > contact the author if possible and mention that to him/her. > > -- Thomas Adam > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users