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

Configure tty output correctly #1209

Merged
merged 2 commits into from
Jul 10, 2023
Merged

Configure tty output correctly #1209

merged 2 commits into from
Jul 10, 2023

Conversation

SkymanOne
Copy link
Contributor

Previously --output-json and --quiet flag still produced some compilation status output due to misconfigured tty output. This PR provides a fix.

@SkymanOne SkymanOne merged commit da2e8d5 into master Jul 10, 2023
@SkymanOne SkymanOne deleted the gn/silent-build branch July 10, 2023 15:22
Comment on lines +107 to +109
cmd.env("CARGO_TERM_COLOR", "auto")
.env("CARGO_TERM_PROGRESS_WIDTH", term_size)
.env("CARGO_TERM_PROGRESS_WHEN", "always")
.env("CARGO_TERM_PROGRESS_WHEN", "auto")
Copy link
Collaborator

@ascjones ascjones Jul 10, 2023

Choose a reason for hiding this comment

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

Interesting that this actually works to still correctly detect and display the colour and progress bar, the docs say that the default is auto and yet it does not work when we don't explicitly set it. 🤷

We could go a step further here and pass in the verbosity to this function so that it only sets the TERM_PROGRESS vars when it is not Verbosity::Quiet

This was referenced Jul 26, 2023
@smiasojed smiasojed mentioned this pull request Mar 4, 2024
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.

3 participants