J
J
Jebati2019-06-20 12:37:34
JavaScript
Jebati, 2019-06-20 12:37:34

A library to fully translate ANSI to HTML?

Hello.
In the picture on the left, cat the log file and on the right, just browsing through np++.
5d0b52f486aa6746632755.png
I need to find a good lib to fully convert the terminal log into html so that everything looks the same as in the real terminal.
I found ansi_up library but it doesn't understand

[?1l>[?1000l[?2004l[?1h=[?2004h>
, and leaves > in front of strings - even though there are none in cat.
I think the idea is clear, I hope for local help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jebati, 2019-06-20
@Jebati

Use xtermjs

S
Shohruh Shaimardonov, 2019-06-20
@joeberetta

Here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question