Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANSI output used with non-ANSI terminals, NO_COLOR #94

Open
kornelski opened this issue Jun 20, 2024 · 0 comments
Open

ANSI output used with non-ANSI terminals, NO_COLOR #94

kornelski opened this issue Jun 20, 2024 · 0 comments

Comments

@kornelski
Copy link

I'm running my Bevy projects via Sublime Text, which doesn't have a real terminal, only a super basic plaintext log.

The problem is that naga_oil uses ANSI colors on non-WASM targets unconditionally, without checking whether the terminal is compatible. In my case TERM is undefined, and I'm running std::env::set_var("NO_COLOR", "1") in main, but I still get ANSI color output that makes WGSL errors completely unreadable:

Screenshot 2024-06-21 at 00 17 24
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

No branches or pull requests

1 participant