buildkite / terminal-to-html

Converts arbitrary shell output (with ANSI) into beautifully rendered HTML
http://buildkite.github.io/terminal-to-html
MIT License
649 stars 45 forks source link

Docker buildkit output includes odd escapes #55

Closed sj26 closed 5 years ago

sj26 commented 5 years ago

Buildkit builds seem to rewrite the first line while continuing to output new lines at the bottom, and whatever terminal codes it's using don't seem to quite be supported here:

image
sj26 commented 5 years ago

Ah it looks like these are to show and hide the cursor, which we should probably ignore on rendering.

https://en.wikipedia.org/wiki/ANSI_escape_code

image