bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
36.75k stars 3.62k forks source link

bevy_log: Support Windows CMD formatting #5176

Open griffi-gh opened 2 years ago

griffi-gh commented 2 years ago

What problem does this solve or what need does it fill?

ANSI Escape sequences make logs unreadable in cmd

What solution would you like?

Either disable ASII escape codes for cmd or use the Windows CMD-specific ones

What alternative(s) have you considered?

N/A

Additional context

server_6pJJTbFYvu

djeedai commented 2 years ago

This boils down to detecting whether the current environment is a terminal (TTY) that supports ANSI codes, which probably requires a helper dependency crate to do that for us.

I did some quick research: