kernelwernel / VMAware

VM detection library and tool
MIT License
351 stars 38 forks source link

win_ansi_enabler #44

Closed MarekKnapek closed 7 months ago

MarekKnapek commented 7 months ago

Windows does not use terminal ANSI escape sequences. If you want to change font color, there is special API function call for it. Or, since Windows 10 version 16257, you can use ANSI escape sequences. But, for backwards compatibility, you need to enable it in each application by using the SetConsoleMode API function call. Or enable it for all applications by changing global Windows settings (in registry). So, in this pull request I added the SetConsoleMode call.

MarekKnapek commented 7 months ago

Source: https://superuser.com/questions/413073/

kernelwernel commented 7 months ago

should've said this before the merging but thanks for the PR, really appreciate it :)