Live data from Hacker News

Asciinema: Record and share your terminal sessions

asciinema.org

41–50 of 72 posts

Re: Asciinema: Record and share your terminal sessions

#41

This looks really useful for documentation. The text-based approach seems like a huge advantage over screen recordings. Being able to copy-paste commands from a "video" is brilliant. The privacy concern about auto-uploading is a bit concerning though, glad they added the prompt to choose local vs upload.

yes, but for me [1] it breaks new-lines which where there before in the terminal.

[1] Firefox 141 @ Ubuntu 22.04

Re: Asciinema: Record and share your terminal sessions

#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 and such.

Maybe this could be achieved by recording in a human readable file format and then running it via an LLM with right prompt.

Then I'd like it to record all the time.

I always have a bunch of tmux sessions running. I've set it up to save the history of all sessions, but obviously the history is one file. Something like this could resolve it nicely.

Re: Asciinema: Record and share your terminal sessions

#44

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

Love it! The Pacman character animation is great.

Re: Asciinema: Record and share your terminal sessions

#45
post #11

Earlier quoted context omitted.

Looks cool, but produce GIFs? Asciinema is text based IIRC. The name is the downside of Asciinema IMO. Can’t help but read it as ASCII enema, which is funny, but not what I want think about. Just call it tty-player or something…

vhs can also create video files: https://github.com/charmbracelet/vhs#output

But the brilliant thing about Asciinema is that the output is just text (JavaScript). You can pause it and copy text from it if you need to, and the filesize is basically nil.

Re: Asciinema: Record and share your terminal sessions

#46

I am curious about the use cases where a VIDEO recording is inherently more useful than a TEXT recording of a terminal session. I have found simply using: script session.log ... to be invaluable, especially when documenting commands that will be finding their way into a bash script or when I am collaborating with another person who will always have script available in their terminal but may have restrictions on being…

Demoing TUIs

Re: Asciinema: Record and share your terminal sessions

#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

Re: Asciinema: Record and share your terminal sessions

#48

The upload "feature" is very dangerous.

This has been changed. In 2.4 there’s explicit prompt for save/upload/discard. Since 3.0 there’s no auto upload in any form - you always record to a file, and to upload you need to explicitly run `asciinema upload filename`.

Re: Asciinema: Record and share your terminal sessions

#49

This looks really useful for documentation. The text-based approach seems like a huge advantage over screen recordings. Being able to copy-paste commands from a "video" is brilliant. The privacy concern about auto-uploading is a bit concerning though, glad they added the prompt to choose local vs upload.

I always read it “ASCII Cinema” in my mind, but that’s obviously not correct (they provide the IPA in the first paragraph)

Re: Asciinema: Record and share your terminal sessions

#50
post #7

I’ve moved over to using vhs https://github.com/charmbracelet/vhs

VHS offers a declarative approach with .tape files that makes terminal demos reproducible and version-controllable, plus it generates GIFs without requiring a browser to view the recordings.
Post reply on HN