Re:Show HN: Termtosvg – Record terminal sessions as SVG anim...
by fla on Tuesday July 03, 2018 @01:48PM
(#17452247)
What about embedding a mini ECMAScript player and apply values to the DOM on the fly ?
[ Parent
| on HN ]
Re:Show HN: Termtosvg – Record terminal sessions as SVG anim...
by nbe on Tuesday July 03, 2018 @02:32PM
(#17452614)
I'd rather stick to plain SVG for the animation part, in case ECMAScript is stripped from the SVG for security reasons. ECMAScript might be worth adding for additional features though (play/pause, progress bar, frame seeking...)
Re:Show HN: Termtosvg – Record terminal sessions as SVG anim...
by ramses0 on Tuesday July 03, 2018 @07:04PM
(#17454255)
Why not `zip blah.zip blah.html` and do it all as a single html doc?
http://pieroxy.net/blog/pages/lz-string/index.html
https://github.com/pieroxy/lz-string/blob/master/libs/lz-str...
~5kb gets you an lz-decoder, and you should be able to pull a bunch of trickery with blobs and compressed strings to get somewhere?