Live data from Hacker News

Asciinema – Record and share terminal sessions

asciinema.org

1–10 of 103 posts

Re: Asciinema – Record and share terminal sessions

#5
I tried using asciienema for a blog post. I forget exactly why I gave up on it. Something about it frustrated me and didn’t work right.

I ended up using OBS to make a screen capture. Now I have an MP4 that plays in a vanilla html5 video tag and will work forever.

Re: Asciinema – Record and share terminal sessions

#6
post #2

Don't know if I want to a script that records my terminal session and upload the recording to an external server. Is there a way to keep the recording local?

asciinema is open-source and the file format is publicly documented (asciicast)[1]. You can run `asciinema rec filename.json` to save the file locally and self-host it with asciinema-player[2]. Alternatively, there's also asciicast2gif[3] that converts asciicast json to GIF image.

[1]: https://github.com/asciinema/asciinema/blob/master/doc/ascii...

[2]: https://github.com/asciinema/asciinema-player

[3]: https://github.com/asciinema/asciicast2gif

Re: Asciinema – Record and share terminal sessions

#7
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!

ttyrec and ttyplay

This plays back in the terminal, not in something you can put on the web as easily.

Re: Asciinema – Record and share terminal sessions

#8
post #7
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!

ttyrec and ttyplay This plays back in the terminal, not in something you can put on the web as easily.

asciinema has an ability to do this too!

    $ asciinema rec session.cast
    $ asciinema play session.cast

Re: Asciinema – Record and share terminal sessions

#9
If you feel like using asciinema or similar on your readme - please consider using plain text instead.

This fancy players:

- are unfriendly to visually impaired people

- are unfriendly to the many people with low bandwith in the global south

- require you to watch the play instead of scanning through text with your eyes

- cannot be searched for text strings easily

- cannot be easily used in a terminal or without a browser

Re: Asciinema – Record and share terminal sessions

#10
Pretty favorable experience with working with this tool at $dayjob, all but the compiling of it. Luckily they release precompiled js/css files that are fairly straightforward to consume.

The downside is that the recording format is a bit of a mess and that you end up having to hand tweak things a lot in order to make the recordings pretty. I wish the tool had more in the way of cleaning up its own recordings so that wasn't necessary. There's a small cottage industry of tools on github around this, but none of them were exceptional enough to warrant a note here.

Post reply on HN