-
Notifications
You must be signed in to change notification settings - Fork 741
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
Uses ANSI escape codes in dumb terminal in Sublime Text #2214
Comments
Huh, it seems that
could remedy the situation. |
https://github.com/zkat/supports-color/blob/main/CHANGELOG.md My currently preferred option is waiting. |
Given that we now do these checks, this issue can be safely closed. |
Bug Report
Sublime Text 4 has a "Build" feature which can launch Rust/Cargo programs and redirect their output to its internal log viewer. This log is only in plain text, without any support for ANSI escape codes. It prints escape codes literally, making log output look messy.
in Sublime's log looks like:
Sublime does not set any env variables. There's no
TERM
. It has__CFBundleIdentifier
env var set tocom.sublimetext.4
.It would be nice if
tracing_subscriber
could detect if the terminal supports color before using ANSI codes, or at least detect that it's Sublime and it doesn't support them.Version
tracing v0.1.35
tracing-subscriber v0.3.14
ansi_term v0.12.1
Platform
macOS 12.5
The text was updated successfully, but these errors were encountered: