Sample Header Ad - 728x90

Convert screen log to html

3 votes
1 answer
1328 views
I would like to log actions made in a terminal window, and convert the log to html on fly. I already tried commands script/screen + [ansi2html](https://pypi.python.org/pypi/ansi2html) , but the result is not perfect: the escape sequences for line editing is not handled correctly, so in the resulting html I have a mixture for the old and the new version of the line. So if the output of the terminal is like $> echo Original text Original text $> echo Other Other The resulting html is
 $> echo Original text
 Original text
 $> echo Othernal text
 Other
Any idea, how to solve the issue?
Asked by Attila Szlovencsák (131 rep)
Sep 21, 2013, 10:06 PM
Last activity: Aug 26, 2016, 11:26 PM