Windows 10 anniversary update added ENABLE_VIRTUAL_TERMINAL_PROCESSING flag to console mode, which can be used to enable ANSI color codes. This can be enabled for LuaJIT environment (where FFI is available). Below is my way to enable it.
https://github.com/MikuAuahDark/livesim2/blob/master/logging.lua#L59-L63
Windows 10 anniversary update added
ENABLE_VIRTUAL_TERMINAL_PROCESSINGflag to console mode, which can be used to enable ANSI color codes. This can be enabled for LuaJIT environment (where FFI is available). Below is my way to enable it.https://github.com/MikuAuahDark/livesim2/blob/master/logging.lua#L59-L63