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

fix: Don't try to use colors on non-terminals #29

Merged
merged 1 commit into from
Jul 12, 2023
Merged

Conversation

rymiel
Copy link
Member

@rymiel rymiel commented Jul 12, 2023

If the TERM environment variable is never set, we probably aren't in a terminal environment at all, and we shouldn't try to use colors.

Still fall back to indexed 16 if a terminal is present and we simply don't recognize it, as all terminals should at least support the bare minimum.

@rymiel rymiel added the bug Something isn't working label Jul 12, 2023
@rymiel rymiel requested a review from zml2008 July 12, 2023 04:09
@zml2008 zml2008 self-assigned this Jul 12, 2023
@rymiel rymiel added this pull request to the merge queue Jul 12, 2023
If the TERM environment variable is never set, we probably aren't in a
terminal environment at all, and we shouldn't try to use colors.

Still fall back to indexed 16 if a terminal is present and we simply
don't recognize it, as all terminals should at least support the bare
minimum.
Merged via the queue into trunk with commit db5d87e Jul 12, 2023
@rymiel rymiel deleted the no-term-none branch July 12, 2023 04:18
@zml2008 zml2008 added this to the 1.0.2 milestone Jul 16, 2023
rymiel added a commit to rymiel/Paper that referenced this pull request Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants