Hi There are differences in how setaf is defined between xterm and xterm-256color:
$ TERM=xterm tput setaf 4|cat -v; echo ^[[34m $ TERM=xterm-256color tput setaf 4|cat -v; echo ^[[38;5;4m So, when you do: $ printf '\e[1;34mabc' tmux sets colour 4 using setaf which with xterm-256color ends up as: ^[[1m^[[38;5;4mabc This means you get bold + colour 4. In the 256 colour palette, 4 is hardcoded to ANSI blue. You've told xterm not to use a bold font, so it doesn't change that, and there are no bold colours in the 256 colour palette, so you just get colour 4, normal ANSI blue. I think what you want can be produced by making tmux use the standard escape sequence for normal colours and only use the extended sequence (\e[38;5;n) for the 256 colour palette. You can do this either by just using TERM=xterm and starting the tmux server with -2 to force it to use 256 colours, or by overriding setaf and setab, something like: set -ag terminal-overrides ",xterm-256color:setaf=\e[3%p1%dm:setab=\E[4%p1%dm" On Thu, Sep 24, 2009 at 05:56:49PM +0200, Frank Terbeck wrote: > Nicholas Marriott <nicholas.marri...@gmail.com>: > > Are you expecting a bold font as well? > > Well, no. I'm using the following resources, that should turn off bold > characters everywhere in xterm: > > [snip] > XTerm*font: -*-terminus-*-*-*-*-12-*-*-*-*-*-*-* > XTerm*boldFont: -*-terminus-*-*-*-*-12-*-*-*-*-*-*-* > XTerm*boldMode: false > XTerm*boldColors: true > XTerm*colorBDMode: true > [snap] > > > It works fine for me with putty, I'll try xterm when I get home. > > > > There are various implementations of bold in 256 colour mode, > > > > https://sourceforge.net/tracker/?func=detail&aid=2810418&group_id=200378&atid=973265 > > > > may be related. > > Yeah, that sounds similar to what I'm seeing. > > Btw, 256colors.pl does show light blue in "System colors". But it uses > "\e[38;5;12m" instead of "\e[01;34". I think the former directly uses > foreground colour number 12. > > I created a few screenshots, to show you what I'm seeing: > > Xterm, without any terminal multiplexer running: > <http://ft.bewatermyfriend.org/tmp/256without.png> > > The same Xterm, with tmux: > <http://ft.bewatermyfriend.org/tmp/256tmux.png> > > And the same Xterm, with screen running: > <http://ft.bewatermyfriend.org/tmp/256screen.png> > > This is happening on debian linux (stable) using this xterm: > > % xterm -version > XTerm(235) > > Regards, Frank ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users