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.

Previously set colors is used after the current text is written

See original GitHub issue

When the background (also assuming the foreground, but can’t be verified) gets changed multiple times (by setting AnsiConsole.Background), then after the text has been printed, the previous background color is being used for the rest of the line.

Examples from different shells:

PowerShell

image

CMD

image

Windows Terminal

image

GNOME Terminal

image

Konsole Terminal

image

I tried to look into why this happens, but I was unable to find the reason.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
patriksvenssoncommented, Aug 7, 2020

@AdmiringWorm Funny, I just fixed this 😁 Will be fixed once I push #27!

0reactions
patriksvenssoncommented, Aug 7, 2020

@AdmiringWorm I’ve added a fallback for borders on systems that is either legacy or doesn’t support Unicode. You can opt-out from this behavior by setting either Table.SafeBorder or Panel.SafeBorder to false.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How can I change the color of the text that I have already ...
1 Answer. Because your handwritten notes are "digital ink" they will stay the hard-coded color that you wrote them. "Marks on a page"...
Read more >
Read the current text color in a xterm
I'm writing various utilities, and I'm really liking colorized text. Nothing fancy, just using escape sequences. I've created a simple class ...
Read more >
Change the default text color (font color) in Word
Select the arrow next to Font color, and then choose a color. Font color in font dialog. Select Set As Default and then...
Read more >
Change the colors in a text box or shape
Select the shape or text box. On the Drawing Tools Format tab, click Text Fill > More Fill Colors. In the Colors box,...
Read more >
How to change color for a block of texts?
You can get different shades of gray by using black!x as a color where x is a number from 0 to 100, taken...
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