Skip to content

Enable color output on recent Windows 10 #8209

@mchubby

Description

@mchubby

Referencing #4414 and #5344

Recent builds of Windows 10 have Ansi color sequences enabled by default.

Can you change the IsTerminal runtime check in common/terminal/colors.go to allow colors when Windows 10 >= 1909?
You could use something like https://github.com/microsoft/hcsshim/blob/master/osversion/osversion_windows.go#L35
and 1909 is 10.0 build 18363 (from [1])

[1] https://docs.microsoft.com/en-us/windows/release-information/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions