Skip to content

Commit

Permalink
Enable ENABLE_VIRTUAL_TERMINAL_PROCESSING in cmd
Browse files Browse the repository at this point in the history
Thanks @YomikoR
  • Loading branch information
Setsugennoao committed Oct 20, 2023
1 parent c9b0bda commit 16089a9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vspreview/core/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ def setup_logger() -> None:
global _logger_setup

if not _logger_setup:
try:
from ctypes import windll

windll.kernel32.SetConsoleMode(windll.kernel32.GetStdHandle(-11), 7)
except ImportError:
...

logging.basicConfig(format='{asctime}: {name}: {levelname}: {message}', style='{', level=LOG_LEVEL)
logging.Formatter.default_msec_format = '%s.%03d'
if sys.stdout.isatty():
Expand Down

0 comments on commit 16089a9

Please sign in to comment.