---
** [tickets:#127] Don't discard colour8 in the 256 colour palette.**
**Status:** open
**Created:** Thu May 08, 2014 05:30 AM UTC by Timothy Allen
**Last Updated:** Thu May 08, 2014 05:30 AM UTC
**Owner:** nobody
tmux's internal representation of a terminal cell's colour depends on how it
was set: if it was set using the traditional ECMA48 8/16 colour model, it's
stored as (I think) the numeric parameter to the 'set foreground' or 'set
background' escape sequence, whereas if it was set
via the xterm 256-colour model, it's stored as the actual palette index, and a
flag is set saying 'this is a palette index'.
Unfortunately, under the old model, the number '8' is used to mean 'do not set
a colour', while under the 256-colour model '8' means 'palette entry 8'.
There's a whole bunch of code in tmux that wraps colour-setting logic in "if
colour is not 8", without checking the
256-colour-model flag, which means if your tmux theme specifies anything as
'colour8', it'll probably not show up even though 'brightblack' (which should
be equivalent) works fine.
The attached patch fixes all the instances of this problem that I've found.
---
Sent from sourceforge.net because tmux-users@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/tmux/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/tmux/admin/tickets/options. Or, if this is a mailing
list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users