Live data from Hacker News

Asciinema – Record and share terminal sessions

asciinema.org

101–103 of 103 posts

Re: Asciinema – Record and share terminal sessions

#101
post #27
post #3

Are there any alternatives (just want to see alternatives to find which is best for my use). Either way, looks nice! Although a bit irrelevant, like the gradient!

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

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

#102
post #27

Earlier quoted context omitted.

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

One thing from the 'demo' here: https://nbedos.github.io/termtosvg/ on your web player it seems you cannot select multiple lines

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

#103
post #86

Asciinema is great and a joy to use, but one of the coolest things about how Asciinema is made is that the web player implements a virtual terminal emulator in Clojure: https://github.com/asciinema/vt/blob/master/src/asciinema/vt... It's cljc, which means it runs on both JVM and in JS. I have no idea if they actually use the JVM bit.

The JVM part is not in practical use, but it was just to easy to use cljc to not do it this way
Post reply on HN