Bug 21520 – dmd does not honor the NO_COLOR environment variable

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-01-02T15:00:33Z
Last change time
2023-07-28T08:38:15Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
Iain Buclaw

Comments

Comment #0 by ibuclaw — 2021-01-02T15:00:33Z
All command-line software which outputs text with ANSI color added should check for the presence of a NO_COLOR environment variable that, when present (regardless of its value), prevents the addition of ANSI color. Currently, dmd only supports `-color=off`. See: https://no-color.org/ For context: https://github.com/dlang/dmd/pull/11110#issuecomment-753420180
Comment #1 by dlang-bot — 2023-07-27T20:40:19Z
@dkorpel created dlang/dmd pull request #15467 "Fix 21520 - dmd does not honor the NO_COLOR environment variable" fixing this issue: - Fix 21520 - dmd does not honor the NO_COLOR environment variable https://github.com/dlang/dmd/pull/15467
Comment #2 by dlang-bot — 2023-07-28T08:38:15Z
dlang/dmd pull request #15467 "Fix 21520 - dmd does not honor the NO_COLOR environment variable" was merged into master: - 2bfc38195f6d41a82a4a0ed1c930e39b7d975d7d by Dennis Korpel: Fix 21520 - dmd does not honor the NO_COLOR environment variable https://github.com/dlang/dmd/pull/15467