fix(tmux): pass truecolor through to ghostty#38
Merged
Conversation
The existing terminal-overrides glob *256col*:Tc only matches outer terminals whose TERM contains "256col" (xterm-256color, screen-256color). Ghostty advertises TERM=xterm-ghostty by default, so 24-bit colour stopped at the terminal boundary and tmux fell back to 256. Add an explicit xterm-ghostty:Tc entry. Inert under any other terminal. Prep work for TERM-001-ghostty-bootstrap (separate spec).
This was referenced May 18, 2026
This was referenced May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
xterm-ghostty:Tcentry to tmuxterminal-overridesTERM=xterm-ghosttydoes not match the existing*256col*glob), and tmux falls back to 256 colourContext
Prep work for spec
TERM-001-ghostty-bootstrap(separate, not yet scaffolded). Shipping the tmux fix now as an atomic 1-line change so the moment Ghostty lands locally, truecolor works without re-deploying tmux.conf.Test plan
bats tests/tmux.bats— all 8 tests pass (new test 8 assertsxterm-ghostty:Tcpresence)tmux -f tmux.conf -L test new-session -d 'true'parses cleanly (covered by test 2)$COLORTERM=truecolorand a 24-bit colour test prints a smooth gradient (deferred to TERM-001)