Hmmmmm. I can't see anything wrong in tmux in rxvt-unicode with TERM=rxvt-unicode-256color and either your script files or printf.
This is most likely to be a problem with tmux setting the default colours; \033[m inside tmux is not guaranteed to emit SGR0 to the outside, if the terminal has AX or op, tmux may send \033[39m if it thinks only the foreground colour needs to be reset. What rxvt-unicode version is this? Can you send me the output of "infocmp rxvt-unicode-256color"? Also please check and see does this do the same in rxvt-unicode and xterm: printf '\033[33mabc\033[39mdef\n' On Wed, Nov 02, 2011 at 09:53:37AM +0100, Natacha Port? wrote: > Hello, > > on Wednesday 02 November 2011 at 00:25, Nicholas Marriott wrote: > > For me both these files look identical when cat inside tmux and outside > > tmux in both xterm and rxvt-unicode. That is, there is no difference > > between how tmux and rxvt-unicode renders them. > > > > This is the case even when I add some text after the %. > > After a few failed tries of inserting such text myself, I decided to > create a new script, including some text ion the prompts. I attached the > script file. > > > Can you send a screenshot of your output when you cat these files inside > > and outside tmux so I can see exactly what the differences are? > > Preferably in xterm but if the problem only happens in rxvt-unicode then > > sure use it. > > http://instinctive.eu/screenshots/20111102-082955-tmux+urxvt-color-issue.png > > xterm doesn't have the issue, it appears only on rxvt-unicode. And > printf tests based on a bare sh (which is very bare on FreeBSD) shows > that zsh is not responsible for the issue. > > (the "printf test" being > 'foo \033[7mreversed\033[27m bar \033[32mcolored\033[m baz\n' > with "baz" being brighter than "bar", and "foo" inheriting the color of > the previous line, which is the same as "baz" unless I use a truncated > version stopping after "bar"). > > > Thanks for your help, > Natacha Port? ------------------------------------------------------------------------------ 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