On Thu, Nov 03, 2011 at 02:57:40PM -0700, Felix Rosencrantz wrote: > I was having a problem where my window names were disappearing when my shell > started, at first I was thinking the problem was related to the > automatic-renaming option. After some investigation, the problem was that my > prompt was sending a code "\033k\033\\", which is used to clear screen's > title, > there is a note about this in the comments in input.c. > > One problem that made this difficult to track down was that the manual page is > not very precise, and particular details are omitted. It's not clear to me > from > the man page that windows and panes have their own separate title/names. > Though here is what I think the state of tmux is: > Windows have names which can be set in one of three ways: > 1) By tmux command (e.g. new-window, new-session, or rename-window) > 2) By escape code (e.g. printf '\033kWINDOW_NAME\033\\") > 3) Automatic renaming, which tries to be the active command in the > active pane of the window.
yes this is correct personally i don't like that escape sequence, it is a gnu screen extension, should try to find something more sensible instead. maybe \033]1, not sure what xterm uses that for i'm not sure if we should document specific escape sequences, although if you're adding a section on naming and titles it'd make sense to cover these i suppose > 4) Man page issues: > 1) doesn't mention escape code, and that escape code turns off > automatic rename > 2) automatic-renaming isn't specific about which pane is used. > 3) The status-left option mentions both a window title&name. Here window > title, is actually the active pane title. > Panes have titles, which can be set one way: > 1) By escape code: printf '\033]2;My Title\033\\' yes that's right title is what would typically be displayed in the xterm window title in a window manager > 2) Man page issues: > 1) says escape code is used for "window title" > 2) The FORMATS section lists "pane_title", but otherwise not > mentioned in man page. > 3) FAQ incorrectly states: * tmux panes do not have individual > names, titles and so on. > Clients have a title, used to set xterm titles, > 1) Can only be specified by tmux command set-titles-string > 2) Documentation issues: > 1) The man page isn't very clear set-titles-string applies to clients > > > I may still be confused, so would like to confirm if this correct. It seems > like it would be useful if details about names&title were more precisely > spelled out in a separate man page section. > > -FR. > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users