News for hackers. Stuff that matters.
Re:Asciinema – Record and share terminal sessions by nbe on Tuesday December 10, 2019 @06:48AM (#21751606)
I wrote termtosvg as an alternative [1]. It's a python program that records a shell session as a standalone SVG animation. Animations produced by termtosvg can be embedded in Markdown files or HTML pages.

[1] https://github.com/nbedos/termtosvg

Re:Asciinema – Record and share terminal sessions by csdvrx on Tuesday December 10, 2019 @07:47AM (#21751910)
That's great! I love the approach: a standalone ouput in a standard format.

Do you think you could also add support for ttyrec input?

This would allow converting existing ttyrecs and have a a full suite of tools creating all the options ready to upload between 1) standard text format record, 2) regular animated gif, 3) svg when saving space is important (while gaining zoom abilities as well!)

Re:Asciinema – Record and share terminal sessions by nbe on Tuesday December 10, 2019 @07:58AM (#21751986)
It's a good idea. I don't have much time for termtosvg these days so I can't promise it'll get implemented but I've opened an issue to remember it [1].

[1] https://github.com/nbedos/termtosvg/issues/108

Re:Asciinema – Record and share terminal sessions by tsukurimashou on Thursday December 12, 2019 @03:34AM (#21770290)
One thing from the 'demo' here: https://nbedos.github.io/termtosvg/ on your web player it seems you cannot select multiple lines
Re:Asciinema – Record and share terminal sessions by nbe on Thursday December 12, 2019 @07:17AM (#21771193)
Yes. A line of the animation is a group of text elements. Somehow text selection does not work across several SVG groups. I could remove this logic but it would mean duplicating the definition of a line on every frame showing it instead of using a single definition.
Re:Asciinema – Record and share terminal sessions by nickcw on Tuesday December 10, 2019 @07:18AM (#21751754)
That looks very cool, I will give it a go! I particularly like this feature

> Rendering of recordings in asciicast format made with asciinema

I quite like there being an intermediate file like there is in asciinema that you can edit by hand to remove your typos or speed boring bits up.

Re:Asciinema – Record and share terminal sessions by paulgb on Tuesday December 10, 2019 @07:12AM (#21751726)
I like this approach! Smaller filesize and better rendering than a gif, but just as embeddable in a GitHub markdown readme since it's pure CSS animation. Kudos, looking forward to using this.
Re:Asciinema – Record and share terminal sessions by glofish on Tuesday December 10, 2019 @09:11AM (#21752539)
Awesome alternative! I like how it is all in one format.

Fits right into a document I am developing.