[output] enable colors by default

This commit is contained in:
Mike Fährmann
2024-04-20 20:49:28 +02:00
parent 14b38264e0
commit 20e2c0042b
3 changed files with 35 additions and 8 deletions

View File

@@ -86,7 +86,7 @@ def main():
signal.signal(signal_num, signal.SIG_IGN)
# enable ANSI escape sequences on Windows
if util.WINDOWS and config.get(("output",), "ansi"):
if util.WINDOWS and config.get(("output",), "ansi", True):
from ctypes import windll, wintypes, byref
kernel32 = windll.kernel32
mode = wintypes.DWORD()