ansi-to-tui translates \x1b[0m as Style::default() and then updates the "running style" with style.patch, but style.patch(Style::default()) == style, so no change is made. This leads to subtle issues where colors and style modifiers are erroneously reintroduced after reset sequences.
This is simple to fix by translating \x1b[0m as Style::reset() instead.
ansi-to-tui
translates\x1b[0m
asStyle::default()
and then updates the "running style" withstyle.patch
, butstyle.patch(Style::default()) == style
, so no change is made. This leads to subtle issues where colors and style modifiers are erroneously reintroduced after reset sequences.This is simple to fix by translating
\x1b[0m
asStyle::reset()
instead.