-
Notifications
You must be signed in to change notification settings - Fork 80
Labels
Description
Parent: #1534
Problem
Dev Proxy uses ANSI colors in human-mode output with no way to disable them. There's no support for:
NO_COLORenvironment variable (https://no-color.org/)TERM=dumbdetection--no-colorflag
When an agent accidentally runs in human mode (without --output json), ANSI escape codes end up in the captured output, making it harder to parse.
Rationale
NO_COLOR is a widely adopted standard. Supporting it is low effort and prevents edge-case parsing failures for agents and CI systems that capture output.
Proposed solution
- Respect
NO_COLORenvironment variable — if set (any value), disable ANSI colors - Respect
TERM=dumb— disable colors - Optionally add
--no-colorflag for explicit control - When colors are disabled, use the same text content but without ANSI escape sequences
Affected code
DevProxy/Logging/ProxyConsoleFormatter.cs— color output logicDevProxy/Logging/AnsiParser.cs— ANSI handling
Reactions are currently unavailable