Add "Tc" capability to foot and foot-direct terminfo entries
Tc terminfo capability is used by tmux to determine if 24-bit colors are supported by the outer terminal:
TcIndicate that the terminal supports the ‘direct colour’ RGB escape sequence (for example,
If supported, this is used for the initialize colour escape sequence (which may be enabled by adding the
ccccapabilities to the tmux terminfo(5) entry).
This is equivalent to the
Even though the manual says it's "equivalent" to the
RGB capability (in the context of tmux at least), I think the way it's used in practice makes it safe to enable in both the
foot-direct terminfo entries. As far as I can tell, there's only tmux making use of it at the moment and it doesn't seem to cause any problems; as can sometimes be the case when using
Tc by default should make 24-bit colors "just work" in tmux, without the need to add overrides in
.tmux.conf (see: #492, #215). It should also rule it out as a possible cause, when dealing with any future, tmux-related bug reports.
FWIW, kitty seems to set
Tc by default too, despite not setting
colors#0x1000000 or the longer forms of
Deleting a branch is permanent. It CANNOT be undone. Continue?