Added reference for Windows std handle numbers in virtual terminal sequence enabling code.

pull/159/head
David Pokora 6 years ago
parent 06736e2214
commit 05bfbf10cf
No known key found for this signature in database
GPG Key ID: 3CED48D1BB21BDD7
  1. 1
      slither/utils/colors.py

@ -32,6 +32,7 @@ def enable_windows_virtual_terminal_sequences():
virtual_terminal_flag = 0x04 # ENABLE_VIRTUAL_TERMINAL_PROCESSING
# Obtain our stdout/stderr handles.
# Reference: https://docs.microsoft.com/en-us/windows/console/getstdhandle
handle_stdout = kernel32.GetStdHandle(-11)
handle_stderr = kernel32.GetStdHandle(-12)

Loading…
Cancel
Save