1.6.10 update

This commit is contained in:
Ayush Saini 2022-03-13 17:33:09 +05:30
parent 81485da646
commit 240155bce3
37 changed files with 809 additions and 350 deletions

View file

@ -75,6 +75,10 @@ def _default_color_enabled() -> bool:
if not sys.__stdout__.isatty():
return False
# Another common way to say the terminal can't do fancy stuff like color:
if os.environ.get('TERM') == 'dumb':
return False
# On windows, try to enable ANSI color mode.
if platform.system() == 'Windows':
return _windows_enable_color()