Skip to content

print fails on windows #55

Closed
Closed
@Cielquan

Description

@Cielquan

On windows I encounter the problem that the colorful output looks like this:

�[35mtester.py�[0m:�[32m3�[0m �[32;3m<module>�[0m
    'hi'�[2m (str) len=2�[0m

After some research I found the reason. Windows added support for ACSII escapes but they have to be activated.

I also found a solution I think. I will test it a bit more and would than create a pull request.

EDIT: As a workaround one can disable colors with the environment variable PY_DEVTOOLS_HIGHLIGHT=false

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