Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
When i import structlog with colorama installed, my sys.stdout is overwritten by colorama.init() called here:
If I then try to force printing of ANSI color codes in my script while piping the results somewhere, all color codes are stripped which I didn't expect.
Could this be avoided somehow? Perhaps by calling colorama.init(wrap=False), or something else if that breaks on windows?
Example to reproduce:
Example output where 2nd line has no colors anymore: