I have a source that has ANSI escape code attached to the lines it spits out. These lines are sent to the browser. I want to parse these ANSI escape codes with javascript in a browser so that it looks as if it would be in a terminal window.
Purpose: ANSI strings -> html styling covers
Is it possible? First I need to know how to parse ANSI strings in JS.
Thanks!!
fancy source share