Skip to content

ANSI colors no longer render in cmd.exe #1173

Closed
@cowwoc

Description

@cowwoc

Please use the following bug reporting template to help produce actionable and reproducible issues. Please try to ensure that the reproduction is minimal so that the team can go through more bugs!

symfony/symfony#19520 confirms that other people are seeing the same problem.

  • Expected results
    ANSI colors should render in cmd.exe when applications output to stdout/stderr.
  • Actual results (with terminal output if applicable)
    Raw ANSI codes are seen. No colors are rendered.
  • Your Windows build number
    10.0.14393
  • Steps / All commands required to reproduce the error from a brand new installation
  • Run this Java testcase:
public class Test {

    public static void main(String[] args) {
        System.out.println("\033[37;1mwhite\033[0m");
    }
}
  1. You will get this output: �[37;1mwhite�[0m
  2. Redirect the application stdout to foo.log and run type foo.log
  3. Notice that the output now reads white using white text

This is reproducible 100% of the time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions