The console in Windows 10 support VT (Virtual Terminal) / ANSI escape sequences but it is disable by default.
To activate it:
in registry key [HKEY_CURRENT_USERConsole], create or set the VirtualTerminalLevel DWORD value to 1.
(or from cmd.exe :
reg add HKCUConsole /v VirtualTerminalLevel /t REG_DWORD /d 1
)
To deactivate it:
in registry key [HKEY_CURRENT_USERConsole], create or set the VirtualTerminalLevel DWORD value to 0.
You must open a new console window for changes to take effect.
For example use the ANSI color when debugging:
(trace-highlight " 27[0;31m" " 27[0;0m") ;red text color
(trace-highlight " 27[0;7m" " 27[0;0m") ;negative
cameyo