fix(up): give the container a color terminal (TERM/COLORTERM) #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-container-term-colors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The harness (Claude Code) showed no colors in the guix container.
Cause
guix --containerstrips the env (we only--preserve=^WRAPTOOL_) and defaultsTERM=dumb→ colors off. Host hadTERM=tmux-256color COLORTERM=truecolor; the box hadTERM=dumb COLORTERM=(empty).Fix
TERM=xterm-256colorin the entry (the box has no terminfo DB, so a widely-assumed value beats forwarding an exotictmux-256color).--preserve=^COLORTERM$so truecolor is detected.No more
FORCE_COLOR=3prefix needed.Verified
Container reports
TERM=xterm-256color COLORTERM=truecolor(forwarded), truecolor escapes emit. Build/vet/golangci-lint clean.🤖 Generated with Claude Code