Closed biffen closed 10 years ago
yeah, looks tricky to implement https://en.wikipedia.org/wiki/ANSI_escape_code#EL dropping them for now sounds good.
I think the changes on this branch https://github.com/rburns/ansi-to-html/tree/drop-erase-inline behave correctly. Is it convenient for you to test before merging it?
Just got a chance to test it, and sure enough it seems to work. :smile: That was a quick response.
The fix is in the 0.2.1 release. Thanks.
(I found this problem when using atom-build (which uses
ansi-to-html
), but it appears the issue is inansi-to-html
.)Currently, the escape sequence
[K
(EL – Erase in Line) will produce aK
in the output.For instance, GCC with
-fdiagnostics-color
produces a lot of these, so the HTML-ified output is a mess.I'm guessing implementing it would be somewhat tricky, but at least dropping the
K
s would be a huge improvement.