Previously set colors is used after the current text is written
See original GitHub issueWhen 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
CMD
Windows Terminal
GNOME Terminal
Konsole Terminal
I tried to look into why this happens, but I was unable to find the reason.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (12 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@AdmiringWorm Funny, I just fixed this 😁 Will be fixed once I push #27!
@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
orPanel.SafeBorder
tofalse
.