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

Always reset ANSI colors in progress-bar line #3916

Merged
merged 1 commit into from Aug 11, 2020

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented Aug 10, 2020

When having a message like waiting for a machine to build X and
building with nix build -L, the log-prefix is always colored yellow[1]
on a small terminal-width as everything (including the ANSI color-reset) is
stripped away.

To work around that problem, this patch explicitly adds an ANSI_NORMAL
to the end of the progress-bar.

cc @edolstra

[1] https://imgur.com/a/FjtJOk3

When having a message like `waiting for a machine to build X` and
building with `nix build -L`, the log-prefix is always colored yellow[1]
on a small terminal-width as everything (including the ANSI color-reset) is
stripped away.

To work around that problem, this patch explicitly adds an `ANSI_NORMAL`
to the end of the line.

[1] https://imgur.com/a/FjtJOk3
@edolstra edolstra merged commit 5f263e1 into NixOS:master Aug 11, 2020
@Ma27 Ma27 deleted the progress-bar-coloring branch August 11, 2020 05:31
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.

None yet

2 participants