Live data from Hacker News

Asciinema: Record and share your terminal sessions

asciinema.org

51–60 of 72 posts

Re: Asciinema: Record and share your terminal sessions

#51
The venerable script(1) command has been around since 1979 (via 3.0BSD), and while some of the timestamping (supporting via the -r flag to feed the resultant file into the playback) and other utility functions (replay via -p are much newer, the result is the same. Record to a (mostly) text file to schlep around as needed. And it's normally included by default on most installs, including macos.

There's no upload-to-server functionality unlike asciinema, but that may be a feature for some users.

Re: Asciinema: Record and share your terminal sessions

#52
Could anyone recommend any plugins that turn asciinema recordings to SVGs that are currently maintained?

I'm aware of this one, which seems to be the only one actively maintained from when I lasted looked:

https://github.com/MrMarble/termsvg

Hoping others have different recommendations.

What would be nice about transforming to SVG is low bandwidth and ease of use for static sites.

Re: Asciinema: Record and share your terminal sessions

#53
I want to take just a second, not to talk about asciinema itself, but to use asciinema to talk about a project I just discovered recently called carbonyl.

It's a command line web-browser that uses a headless GUI browser (in this case chromium) in order to surf the web and render it to the terminal. brow.sh preceded it (powered by Firefox), but in my testing, carbonyl has much better web support.

In any case, here's a very brief demo: https://asciinema.org/a/HLHWeKE2s5bdyhUGQPBum49kx

It's so short because the bandwidth is high to use it, and asciinema.org rejects casts that are greater than 10MB

Re: Asciinema: Record and share your terminal sessions

#54
post #47
post #42

I like the idea. I haven't used the tool, but what I'd love to (maybe it already does this) is to be able to take a recording and turn it into a text document showing what to run, what output to expect and so on. Something that lets one turn a terminal recording into a document showing how to redo that thing without having to watch a video and no need to copy/paste between terminal and text editor, take screenshots a…

You can get a plain text log of a recorded session in several ways. If you uploaded to asciinema server (e.g. asciinema.org) then you can click on Download and select txt format. Or, with the CLI 3.0, you can either: - convert existing cast file to plain text: asciinema convert demo.cast demo.txt - record directly to plain text: asciinema rec demo.txt

ok, but can you take a recording and turn it into a text document showing what to run, what output to expect and so on.

IE: I think the person your replying to would like to have a tool that rebuilds a terminal session as a, for example, step by step guide. Not just grab it as a text file.

Re: Asciinema: Record and share your terminal sessions

#55

The venerable script(1) command has been around since 1979 (via 3.0BSD), and while some of the timestamping (supporting via the -r flag to feed the resultant file into the playback) and other utility functions (replay via -p are much newer, the result is the same. Record to a (mostly) text file to schlep around as needed. And it's normally included by default on most installs, including macos. There's no upload-to-se…

On a related note, asciinema player supports good ol' typescript files produced by the script(1) command.

https://blog.asciinema.org/post/blast-from-the-past/

Re: Asciinema: Record and share your terminal sessions

#56
post #6

I've found asciinema pretty cool and recorded a few recordings of things I've done, like some experimental Emacs commands, a computer algebra system, a Unicode Tetris game in ARM assembly, and a minimal roguelike: https://asciinema.org/~kragen . These are not the most spectacular recordings on the site, but I have found them a useful way to communicate ideas. I wish there was some kind of voiceover support. One thing…

That is so shady.

It was developed as a tool for the website, not a general purpose screen recording tool.

The latest version has evolved to be more general purpose without assuming the upload.

Re: Asciinema: Record and share your terminal sessions

#57
At SadServers we use Asciinema to record some scenario sessions, this is how we did it: https://github.com/sadservers/sadservers?tab=readme-ov-file#... (we still have some issues to iron out on our side)

The author Marcin is a nice fellow and as a reminder asciinema development relies on donations and sponsorships https://github.com/sponsors/ku1ik

Re: Asciinema: Record and share your terminal sessions

#58
All of the terminal effects I display over at: https://chrisbuilds.github.io/terminaltexteffects/showroom/ were recorded using asciinema and converted to gif use AGG. https://github.com/asciinema/agg

The workflow only takes a few seconds. The .cast file is output to a folder, AGG reads the .cast and creates a gif. AGG has arguments to automatically set the row/column widths and strip inactive time.

I could not find any other solution that produced high quality gifs. Asciinema is awesome.

Re: Asciinema: Record and share your terminal sessions

#59

This is a really nice, and very compact, way of demonstrating the terminal in action. I used it to show off my 2002 version of ASCII pacman game, since no one's going to bother compiling it, and it'll eventually end up with bitrot. You can see me playing it (really badly!) at https://asciinema.org/a/723703

Very cool! I'd love to see the code, if it's shareable.

Re: Asciinema: Record and share your terminal sessions

#60
post #58

All of the terminal effects I display over at: https://chrisbuilds.github.io/terminaltexteffects/showroom/ were recorded using asciinema and converted to gif use AGG. https://github.com/asciinema/agg The workflow only takes a few seconds. The .cast file is output to a folder, AGG reads the .cast and creates a gif. AGG has arguments to automatically set the row/column widths and strip inactive time. I could not find a…

Quality animated SVGs is even better:

https://github.com/marionebl/svg-term-cli

Post reply on HN