Live data from Hacker News

Asciinema – Record and share terminal sessions

asciinema.org

71–80 of 103 posts

Re: Asciinema – Record and share terminal sessions

#71
post #6

Earlier quoted context omitted.

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://githu…

About a year ago, I hacked on an internal project that was exploring command-line interactions as code. Think of it like an animated CLI documentation factory. I believed and continue to believe, that short CLI animations give context to CLI usage and allow pause/copy/paste (game changer for watchers) if not in svg/gif which helps with consumability. Problem in my mind has always been keeping them up to date at scale…

Please open source this if you can!

Re: Asciinema – Record and share terminal sessions

#72
post #31
post #22

Earlier quoted context omitted.

>Let me be the devil advocate: why not use ttyrec + seq2gif instead? GIFs look poor - they don't capture colours well. They're not accessible. They don't zoom. Copy and paste doesn't work. >And if you want something fancy that asciinema output, you can use seq2gif which support all the bell n whites asciinema does, while allowing you to also upload the ttyrec file. Unless I'm missing something obvious (possible!), se…

> Or are you saying the ttyrecord files are more accessible? I do. You can edit them like if you made a typo. They are common, so there's an ecosystem of tools if you don't like raw edits. Next to that, asciinema looks like reeinventing the wheel, except it's no longer round, so it requires special tools and roads now. But what's a few extra dependencies? It looks better and it's new! > I have nothing on my system th…

>In general, I prefer a standard format supported by many free software tools

Which are? This is the first I'm hearing of ttyrecord in the first place.

> Especially if I can pacman / apt-get install the tools.

asciinema is in the arch repos, "ttyrec" is in the AUR. Both are in the debian repos.

> You want to show features, not look cool

The use you're talking about is in marketing material. Looking cool is a feature!

Re: Asciinema – Record and share terminal sessions

#73

There are only 2 ways of pronouncing that, "Ascii enema" or "Ass cinema", both butt related... bit unfortunate.

Still not as bad as the BlackBerry company (Research In Motion, or RIM) careers website, "RIM.jobs"

Or the old 'expertsexchange.'

Re: Asciinema – Record and share terminal sessions

#74
Love the tool there are a couple of downsides:

1) Doesn't work with powerpoint if you have to use that

2) There's no "pause" point. A lot of time you want to have the command play to a certain point but then cause until you click "next" so that you can explain things to the audience before continuing on.

3) End up having to fiddle a lot with the JSON so the timing feels decent vs me copy/pasting into it and hitting enter.

Re: Asciinema – Record and share terminal sessions

#75
post #74

Love the tool there are a couple of downsides: 1) Doesn't work with powerpoint if you have to use that 2) There's no "pause" point. A lot of time you want to have the command play to a certain point but then cause until you click "next" so that you can explain things to the audience before continuing on. 3) End up having to fiddle a lot with the JSON so the timing feels decent vs me copy/pasting into it and hitting e…

I have used ascii2gif to use asciinema in powerpoints, documents etc, successfully. Would this be helpful to you?

Re: Asciinema – Record and share terminal sessions

#76
post #51

My team wrote our own implementation with a similar API to get around Asciinema's weird support for React [0]. We've been using it in our web application to play back historic terminal sessions recorded by our agent. Unfortunately it hasn't been split out from the main application code yet. Open sourcing it is on the list. [0] https://github.com/asciinema/asciinema-player/issues/72

How do you mean with the "weird support"? I could read the code of course, but essentially, what do you mean? :)

The first two posts of the linked issue should satisfy your curiousity.

Re: Asciinema – Record and share terminal sessions

#79

Earlier quoted context omitted.

Still not as bad as the BlackBerry company (Research In Motion, or RIM) careers website, "RIM.jobs"

Or the old 'expertsexchange.'

or penisland.net. I'm afraid to look it up at work but as of a few years ago, it's still active.
Post reply on HN