What is TERM outside tmux? For the aixterm colours we explicitly check
for colors >= 16, the -2 flag only affects the 256 colour escape
sequences.

Make sure TERM outside tmux is set to something with colors=256. Try
xterm-256color.


On Tue, Apr 08, 2014 at 02:12:24PM -0400, Jean-Rene David wrote:
> Hello,
> 
> I can't get tmux to display background colors 8-15
> correctly.  When I set them it instead sets the
> foreground color as bold.
> 
> $ tmux -V
> tmux 1.6
> 
> This works correctly from xterm, or from screen
> inside xterm:
> 
> $ TERM=screen-256color tput setab 8; printf "test\n"
> 
> It sets the background to color8.
> 
> But typing the same command in tmux the string is
> displayed incorrectly, as if I had done:
> 
> $ TERM=screen-256color tput bold; printf "test\n"
> 
> That is, the background is unchanged and the
> foreground is bold.
> 
> I start tmux like so:
> 
> $ tmux -f /dev/null
> 
> And I get the same result if I start it like so:
> 
> $ tmux -f /dev/null -2
> 
> Any pointers or troubleshooting tips?
> 
> -- 
> JR
> 
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment 
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to