Skip to content

Colors not working correctly on Windows #83

@cabauman

Description

@cabauman

OS: Windows 11 Pro
OS Build: 22000.434

Sample output from testing Colorful.Console.WriteLine(string, Color) gives me:

Screenshot 2022-02-01 123719

That dark blue is always the first color, no matter what. After cloning the repo to debug, I found that GetConsoleColorNative is the part that's returning incorrect results. Manually changing it to take the color.ToNearestConsoleColor() path works fine, of course.

Just wanted to report for visibility. Thanks for all your hard work on this library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions