On Wed, Jan 15, 2014 at 09:28:50PM -0800, Lawrence Jacob Siebert wrote:
> But try as I might, I can't figure out how to do this in tmux.  And I love
> tmux, so I'd prefer to use it instead of screen, if at all possible.

tmux always supports 256 colours, but most programs will only try to
display 256 colours if the $TERM environment variable names a terminal
definition that claims to support 256 colours.

By default, tmux sets $TERM for new windows and panes to "screen", which
is a terminal definition that claims to support 8 colours. If you put
something like this in ~/.tmux.conf:

    set-option -g default-terminal screen-256color

...then programs running inside tmux should use the "screen-256color"
terminal definition which (as the name implies) claims to support 256
colours, and everything should work as you expect.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to