Skip to content

Commit

Permalink
Fix logger not displaying true colors on Windows
Browse files Browse the repository at this point in the history
Let colorama.AnsiToWin32 decide where to convert or to strip ANSI
sequences.
  • Loading branch information
tunaflsh committed Aug 7, 2023
1 parent 336d491 commit d2ebcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loguru/_colorama.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ def should_wrap(stream):
def wrap(stream):
from colorama import AnsiToWin32

return AnsiToWin32(stream, convert=True, strip=False, autoreset=False).stream
return AnsiToWin32(stream, convert=None, strip=None, autoreset=False).stream

0 comments on commit d2ebcc1

Please sign in to comment.