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 ANSI color constants #3805

Merged
merged 1 commit into from Jul 13, 2020
Merged

Fix ANSI color constants #3805

merged 1 commit into from Jul 13, 2020

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented Jul 12, 2020

The m acts as termination-symbol when declaring graphics. Because
of this, the ;1m doesn't have any effect and is directly printed to
the console:

$ nix repl
> builtins.fetchGit { /* ... */ }
{ outPath = "/nix/store/s0f0iz4a41cxx2h055lmh6p2d5k5bc6r-source"; rev = "e73e45b723a9a6eecb98bd5f3df395d9ab3633b6"; revCount = ;1m428; shortRev = "e73e45b"; submodules = ;1mfalse; }

Introduced by 6403508.

cc @Ericson2314 @edolstra

The `m` acts as termination-symbol when declaring graphics. Because
of this, the `;1m` doesn't have any effect and is directly printed to
the console:

```
$ nix repl
> builtins.fetchGit { /* ... */ }
{ outPath = "/nix/store/s0f0iz4a41cxx2h055lmh6p2d5k5bc6r-source"; rev = "e73e45b723a9a6eecb98bd5f3df395d9ab3633b6"; revCount = ;1m428; shortRev = "e73e45b"; submodules = ;1mfalse; }
```

Introduced by 6403508.
@Ericson2314
Copy link
Member

Sorry I messed it up!

@edolstra edolstra merged commit d7026cc into NixOS:master Jul 13, 2020
@Ma27 Ma27 deleted the ansi-color-fix branch July 13, 2020 08:11
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

3 participants