Skip to content

Colours do not work on windows 10 cmd console #22

Open
@jbx1

Description

@jbx1

Running the program from a Windows 10 console would output strange characters, which presumably correspond to the ANSI colours. The output displays things like �[4m and �[33m and �[24m etc.

It seems that windows 10 does not handle these well, and there were some breaking changes done in a recent update.

microsoft/WSL#1173

There was also some discussion related to this here:
scala/scala#5663

The simplest option could be to first add an option to disable coloured output.

If there is a way to detect whether the terminal supports colour one could use it to turn coloured output on, but I suspect it is not that trivial. (I would still leave the option to turn it off explicitly anyway for those who do not want colours.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions