Preflight Checklist
What's Wrong?
Claude Code Terminal Color Rendering Bug
Summary
Claude Code renders terminal colors incorrectly, causing large portions of the screen to display with bright green and magenta/pink backgrounds, making the terminal unreadable. The NO_COLOR=1 environment variable is not respected.
Environment
- Claude Code version: 2.1.22
- OS: Debian Linux (kernel 6.1.0-42-amd64)
- Shell: Bash
- Terminal emulators tested: lxterminal, kitty, xterm, alacritty (all affected)
Problem Description
When running Claude Code, the terminal displays corrupted background colors - specifically bright lime green and magenta/pink backgrounds that cover large portions of the screen. This makes it impossible to read text or see what is being typed.
Key observations:
- Multiple terminals affected: Tested with lxterminal, kitty, xterm, and alacritty - all show the same problem
- NO_COLOR=1 not respected: Setting
export NO_COLOR=1 before launching Claude does not fix the issue
- FORCE_COLOR=0 not respected: Also tried
FORCE_COLOR=0 with no effect
- Persistent issue: This has been happening for months across multiple Claude Code versions
- Only affects Claude Code: Normal terminal usage works fine; the problem only appears inside Claude Code sessions
Screenshot

The screenshot shows bright green and magenta backgrounds bleeding across the terminal, obscuring text.
Workaround
Setting TERM=dumb before launching Claude Code fixes the issue:
Or as an alias:
alias claude='TERM=dumb claude'
This disables the fancy terminal rendering and makes Claude Code usable, though without color support.
Expected Behavior
- Claude Code should render colors correctly in standard terminal emulators
- Claude Code should respect
NO_COLOR=1 environment variable per the NO_COLOR standard
- A
--no-color CLI flag would be helpful for users experiencing color issues
Steps to Reproduce
- Open any terminal emulator (lxterminal, kitty, xterm, alacritty)
- Run
claude
- Observe corrupted green/magenta background colors covering the screen
Additional Context
- The issue appears to be related to how Claude Code outputs ANSI escape sequences for 24-bit/truecolor
- Standard 256-color or 16-color terminals may handle this differently
- The corruption persists even after running terminal reset commands (
reset, printf '\e[0m')
What Should Happen?
I should be able to read the terminal without insane colors making that impossible.
Error Messages/Logs
Steps to Reproduce
load claude in my computer.
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
hasn't worked right ever. It's been months.
Claude Code Version
2.1.22 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
ACTIVITY_LOG_INSERTION_POINTS.md


Preflight Checklist
What's Wrong?
Claude Code Terminal Color Rendering Bug
Summary
Claude Code renders terminal colors incorrectly, causing large portions of the screen to display with bright green and magenta/pink backgrounds, making the terminal unreadable. The
NO_COLOR=1environment variable is not respected.Environment
Problem Description
When running Claude Code, the terminal displays corrupted background colors - specifically bright lime green and magenta/pink backgrounds that cover large portions of the screen. This makes it impossible to read text or see what is being typed.
Key observations:
export NO_COLOR=1before launching Claude does not fix the issueFORCE_COLOR=0with no effectScreenshot
The screenshot shows bright green and magenta backgrounds bleeding across the terminal, obscuring text.
Workaround
Setting
TERM=dumbbefore launching Claude Code fixes the issue:Or as an alias:
This disables the fancy terminal rendering and makes Claude Code usable, though without color support.
Expected Behavior
NO_COLOR=1environment variable per the NO_COLOR standard--no-colorCLI flag would be helpful for users experiencing color issuesSteps to Reproduce
claudeAdditional Context
reset,printf '\e[0m')What Should Happen?
I should be able to read the terminal without insane colors making that impossible.
Error Messages/Logs
Steps to Reproduce
load claude in my computer.
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
hasn't worked right ever. It's been months.
Claude Code Version
2.1.22 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
ACTIVITY_LOG_INSERTION_POINTS.md

