MegaAntiCheat / client-backend

GNU General Public License v3.0
120 stars 25 forks source link

Enable ansi support on windows #178

Closed TheLazySquid closed 3 months ago

TheLazySquid commented 3 months ago

On windows (at least for me and someone in this discord thread) the client_backend console is missing its ansi formatting

image

This uses ansi_term::enable_ansi_support to make the formatting work on windows too.

image

I have almost no experience with rust but it seems to work fine for me on windows and wsl.

unknowntrojan commented 3 months ago

this fundamentally boils down to a call to SetConsoleMode to set ENABLE_VIRTUAL_TERMINAL_PROCESSING on the console handle iirc

Bash-09 commented 3 months ago

Oh yeah I ran the pipeline but totally forgot to merge this.