You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using init(strip=True) to disable colors works for print statements, such as:
>>> from colorama import init, Fore
>>> print(f'{Fore.RED}test{Fore.RESET}')
test (COLORED)
>>> init(strip=True)
>>> print(f'{Fore.RED}test{Fore.RESET}')
test (NO COLOR)
Using
init(strip=True)
to disable colors works forprint
statements, such as:But it does not for logging statements
I'm currently using this workaround in my CLI main/parser entrypoint:
But it would be nice to have stripping actually working...
The text was updated successfully, but these errors were encountered: