Intermittent black-on-white text rendering in terminal output

Resolved 💬 3 comments Opened Feb 23, 2026 by richard-scott Closed Mar 23, 2026

Description

Claude Code occasionally outputs text with explicit black-on-white ANSI styling, causing certain spans of text to render as black text on a white background, with solid black blocks elsewhere. This is not caused by text selection — it is baked into the output itself.

Expected behaviour

All terminal output should use the terminal's default colour scheme (white/light text on dark background), with colour only applied intentionally (e.g. command references in blue).

Actual behaviour

Intermittently, some output renders with:

  • Black text on a white/light background
  • Solid black blocks in other parts of the same output

This makes the text difficult to read and appears to be an ANSI escape code issue where foreground/background colours are being set explicitly rather than deferred to the terminal default.

Reproduction

Intermittent — does not happen on every output. Observed on GSD phase verification output. Screenshot attached.

Environment

  • OS: Windows 11 Pro
  • Shell: Bash (via Windows Terminal)
  • Claude Code version: unknown at time of report

Screenshot

!Intermittent black-on-white rendering

Note: Screenshot shows the raw output — no text was selected at the time of capture.

<img width="891" height="84" alt="Image" src="https://github.com/user-attachments/assets/2c9b5be4-363f-430d-aab7-a41447b54d7f" />

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗