Skip to content

Warning color is brown; depends on the fact that Windows console mismaps brown to yellow #14513

Description

@joshudson

Describe the bug

Warnings are expected to be yellow, but the ANSI escape sequence is for brown

Image

Too awhile to notice because Windows has had for decades a mismapping where brown turns into yellow. But when you try it without Windows anywhere on the stack, the brown appears.

Steps to reproduce

Have a project that has build warnings

Use lxterminal

Build the project

Expected behavior

Warnings are yellow

Actual behavior

Warnings are brown

Is this a regression?

Don't think so

Are there any workarounds?

I suppose I could use the tuner to turn the brown to yellow and mess up everybody else. But that is problematic for its own reasons.

dotnet --info output

$ dotnet --info
.NET SDK:
 Version:           10.0.300
 Commit:            caa81fa497
 Workload version:  10.0.300-manifests.930f594d
 MSBuild version:   18.6.3+caa81fa49

Runtime Environment:
 OS Name:     debian
 OS Version:  13
 OS Platform: Linux
 RID:         linux-x64
 Base Path:   /usr/share/dotnet/sdk/10.0.300/

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
  Version:      10.0.8
  Architecture: x64
  Commit:       94ea82652c

.NET SDKs installed:
  7.0.410 [/usr/share/dotnet/sdk]
  8.0.421 [/usr/share/dotnet/sdk]
  10.0.300 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 7.0.20 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 8.0.27 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 10.0.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.20 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.27 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 10.0.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
  None

Environment variables:
  Not set

IDE version

No response

Other details

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions