MegaAntiCheat / client-backend

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

Enable ansi support on windows #178

Closed TheLazySquid closed 1 month ago

TheLazySquid commented 1 month 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 1 month ago

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

Bash-09 commented 1 month ago

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