Skip to content

Enable ansi support on windows#178

Merged
Bash-09 merged 2 commits intoMegaAntiCheat:mainfrom
TheLazySquid:main
Aug 10, 2024
Merged

Enable ansi support on windows#178
Bash-09 merged 2 commits intoMegaAntiCheat:mainfrom
TheLazySquid:main

Conversation

@TheLazySquid
Copy link
Copy Markdown
Contributor

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
Copy link
Copy Markdown

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

@Bash-09
Copy link
Copy Markdown
Contributor

Bash-09 commented Aug 10, 2024

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

@Bash-09 Bash-09 merged commit 64b540b into MegaAntiCheat:main Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants