Skip to content

Configure tty output correctly#1209

Merged
SkymanOne merged 2 commits into
masterfrom
gn/silent-build
Jul 10, 2023
Merged

Configure tty output correctly#1209
SkymanOne merged 2 commits into
masterfrom
gn/silent-build

Conversation

@SkymanOne
Copy link
Copy Markdown
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
Copy Markdown
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