mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-24 11:18:42 +00:00
@@ -6592,7 +6592,8 @@ def jwt_decode_hs256(jwt):
|
||||
|
||||
def supports_terminal_sequences(stream):
|
||||
if compat_os_name == 'nt':
|
||||
if get_windows_version() < (10, 0, 10586):
|
||||
from .compat import WINDOWS_VT_MODE # Must be imported locally
|
||||
if not WINDOWS_VT_MODE or get_windows_version() < (10, 0, 10586):
|
||||
return False
|
||||
elif not os.getenv('TERM'):
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user