[BUG] Claude Code does not reset text background if some executed command sets text background color.
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When Claude Code executes a command that changes the text background, there is color bleeding from the command to the rest of Claude Code text, until Claude itself outputs some text with background. I end up with entire screens with background colors that make many times text hard to read.
What Should Happen?
Claude Code should set text background to some color, example black even if executed command left it in some color. This would prevent background color bleeding to other texts. I would be easier to work with CC and this bug is likely very easy to fix. One liner.
Error Messages/Logs
No error message. Altered screen text.
Steps to Reproduce
You just need to run phpunit Laravel test. Another option to test would be to create a simple console script that sets the color background and leaves it as is. Texts created by CC will get as background the color set by the previous command.
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
1.0.119 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
<img width="2200" height="1100" alt="Image" src="https://github.com/user-attachments/assets/ed8e2d7d-e505-4272-84c0-9d9c4e89fcfa" />
<img width="2237" height="1134" alt="Image" src="https://github.com/user-attachments/assets/d96a2215-e602-4d7c-bde8-11951a9972fc" />
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗