Re:Show HN: Termtosvg – Record terminal sessions as SVG anim...
by Pawamoy on Wednesday July 04, 2018 @08:10AM
(#17456775)
I did that in another way: write a demo script, and make it execute in another terminal. Snippet on GitLab [1].
Simply call it with "shell-demo DEMO_SCRIPT", and follow the instructions.
Demo scripts examples are given aside the snippet.
Re:Show HN: Termtosvg – Record terminal sessions as SVG anim...
by jquast on Wednesday July 04, 2018 @02:44AM
(#17455635)
the timing information you want is what 'ttyrec' is for http://derpi.tuwien.ac.at/cgi-bin/man/man2html?1+ttyrec
I suppose the main barrier would be lack of recorded timing information in script logs, so either pre-procesding or pause for input (say 50ms/keystroke + 200ms pr return/line-feed) and/or output (say 50ms pr line feed).
Although, now I see there's a -t option for a timing file.
So would seem one should be able to take logs from script, and produce svg, gif, png, webm, mp4... js output.
[s] http://man7.org/linux/man-pages/man1/script.1.html