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(runtime): fix Deno.noColor when stdout is not tty #21208

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Nov 15, 2023

Deno.noColor is only based on NO_COLOR env var, and noColor flag for console is based on NO_COLOR and isTty of stdout. But it seems these were aligned to the latter in #21164.

This PR restores the original handling of Deno.noColor

closes #21207

@kt3k kt3k requested a review from littledivy November 15, 2023 03:36
Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k kt3k merged commit c67de43 into denoland:main Nov 15, 2023
13 checks passed
@kt3k kt3k deleted the fix-deno-no-color branch November 15, 2023 05:10
zifeo pushed a commit to metatypedev/deno that referenced this pull request Nov 22, 2023
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.

bug: Deno.noColor returns true in canary
2 participants