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
If the console doesn't support ANSI codes, the log becomes hard to read.
Suggested implementation:
Use a helper function for color codes, instead of the lookup dictionary that is used right now. This function can check if ANSI codes are supported. This can probably only be checked once on startup and remembered.
Feature branch:
None
If the console doesn't support ANSI codes, the log becomes hard to read.
Suggested implementation:
Use a helper function for color codes, instead of the lookup dictionary that is used right now. This function can check if ANSI codes are supported. This can probably only be checked once on startup and remembered.
I found this for testing if ANSI is supported, the first response seems promising: https://stackoverflow.com/questions/7445658/how-to-detect-if-the-console-does-support-ansi-escape-codes-in-python
Pro:
Con:
The text was updated successfully, but these errors were encountered: