mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-25 18:03:50 +00:00
console: add error message for older Windows versions (#4911)
This commit is contained in:
parent
888ce66f90
commit
0904cc3f5f
@ -260,7 +260,9 @@ class Screen(BaseScreen, RealTerminal):
|
||||
)
|
||||
|
||||
ok = win32.SetConsoleMode(hOut, dwOutMode)
|
||||
assert ok
|
||||
if not ok:
|
||||
raise RuntimeError("Error enabling virtual terminal processing, "
|
||||
"mitmproxy's console interface requires Windows 10 Build 10586 or above.")
|
||||
ok = win32.SetConsoleMode(hIn, dwInMode)
|
||||
assert ok
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user