claude-code - 💡(How to fix) Fix [FEATURE] Feature request: Support NO_COLOR environment variable to disable ANSI color output [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48375Fetched 2026-04-16 07:01:57
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Fix Action

Fix / Workaround

The current workaround is to set syntaxHighlightingDisabled: true in ~/.claude/settings.json, but even when this is set, claude renders colors for some reason. At least let me customize the theme like most applications do, or provide a monochrome theme.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing requests and this feature hasn't been requested yet
  • This is a single feature request (not multiple features)

Problem Statement

Claude Code does not respect the https://no-color.org/ environment variable, which is a widely adopted convention for disabling ANSI color output in terminal applications.

Setting NO_COLOR=1 (or any non-empty value) in the environment has no effect on Claude Code's color output.

Proposed Solution

Claude Code should honor NO_COLOR as specified by https://no-color.org/ — when set to any non-empty value, suppress all ANSI color escape codes in output.

Alternative Solutions

The current workaround is to set syntaxHighlightingDisabled: true in ~/.claude/settings.json, but even when this is set, claude renders colors for some reason. At least let me customize the theme like most applications do, or provide a monochrome theme.

Priority

Whatever you consider

Feature Category

CLI commands and flags

Use Case Example

  • Some terminal emulators don't render colors correctly.
  • Some people can't easily read code when syntax highlighting is enabled.

Additional Context

No response

extent analysis

TL;DR

To fix the issue, Claude Code should be updated to honor the NO_COLOR environment variable by suppressing ANSI color escape codes in output when it's set to a non-empty value.

Guidance

  • Verify that the NO_COLOR environment variable is correctly set before running Claude Code by checking its value in the terminal or command prompt.
  • Check the Claude Code documentation or source code to see if there's an existing mechanism for handling the NO_COLOR variable that can be leveraged.
  • Consider adding a feature to allow users to customize the theme, including a monochrome option, as an alternative solution.
  • Test the current workaround of setting syntaxHighlightingDisabled: true in ~/.claude/settings.json to see if it has any effect on color output.

Example

No code example is provided as it's not clearly supported by the issue.

Notes

The issue lacks information about the internal implementation of Claude Code, so it's unclear what changes would be required to honor the NO_COLOR variable. Additionally, the current workaround may not be effective due to a bug or incomplete implementation.

Recommendation

Apply a workaround, such as setting syntaxHighlightingDisabled: true in ~/.claude/settings.json or using a different terminal emulator that renders colors correctly, until the NO_COLOR variable is properly supported by Claude Code.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING