question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Console Color not reset?

See original GitHub issue

From time to time I see https://github.com/fsharp/FAKE/issues/1858 in my shell. And somehow I feel like expecto is to blame here.

Regarding

https://github.com/haf/expecto/blob/04f12c07e7d148c8a7204e7bc6badc73648c5f46/paket-files/logary/logary/src/Logary.Facade/Facade.fs#L709-L720

Is it possible that multiple LiterateConsoleTarget instances exist for example? Or that the execution is cancelled because another test has failed and it doesn’t reset the color in that scenario? Is there anything that comes to mind?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
hafcommented, May 25, 2018
screen shot 2018-05-25 at 11 27 48

This is what the output looks like in Logary proper; we have a different way of handling data there. I think we should have a design session around how to handle modern terminals and how to deal with structured output (and not just structured logging/data of messages).

Also, we should move to ANSI escape sequences, opted out automatically for terminals it’s known not to work with.

Here’s the PR for the new Facade https://github.com/logary/logary/pull/335

0reactions
AnthonyLloydcommented, Jul 4, 2018

resolved with #258

Read more comments on GitHub >

github_iconTop Results From Across the Web

Console.ResetColor is not resetting the line after completely
I want to write one line in another background and foreground color. The straightforward solution changes the background for the space at the ......
Read more >
Console.ResetColor Method (System)
Sets the foreground and background console colors to their defaults. ... Finally, it calls the ResetColor method to restore the original console colors....
Read more >
bash - Colored terminal output ignores reset sequence. ...
1 Answer 1 · This does seem to work nicely when I replace \e with \33 . Such a relief! · Many terminals...
Read more >
Console font color is changed and not reset on Windows ...
When I run yarn init, font color on PowerShell is changed to yellow. Even after completion of yarn process, font color isn't reset....
Read more >
How do I reset the colors of my terminal? - command line
To reset the terminal colors, use the following command: ... If an entry does not contain the information needed for any of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found