Closed josephmbeveridge closed 7 years ago
I don't know how to write the html for this properly, but here is the code required to show and stop showing a background partway through a line :) Should help with writing the test
Some plain text \e[0;30;42m yay a green background \e[0m now this has no background
Some plain text\e[0;30;42m yay a green background \e[0m\e[0;33;49mnow this has no background but is yellow \e[0m
Just had a dig into this - thanks for the report!
Looks like what’s happening is that Terminal is only treating the \e[0m
as a foreground reset, not a reset of all overrides! I’ve beefed up our test case in #38.
It appears as though some of the colours aren't properly rendered, and clearing the background colour doesn't actually clear the background colour. As you can see from the expected screenshot (both using the same code), the background should end after
P
but it continues, and the yellow text isn't being shown.Expected:
Actual: