[minicurses] Fix when printing to file

Closes #1215
This commit is contained in:
pukkandan 2021-10-10 07:08:22 +05:30
parent 2e01ba6218
commit d1d5c08f29
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
4 changed files with 29 additions and 24 deletions

View file

@ -6458,7 +6458,7 @@ def jwt_encode_hs256(payload_data, key, headers={}):
def supports_terminal_sequences(stream):
if compat_os_name == 'nt':
if get_windows_version() < (10, ):
if get_windows_version() < (10, 0, 10586):
return False
elif not os.getenv('TERM'):
return False