Live data from Hacker News

Asciinema – Record and share terminal sessions

asciinema.org

61–70 of 103 posts

Re: Asciinema – Record and share terminal sessions

#61

Earlier quoted context omitted.

script unfortunately messes with SIGWINCH for terminal resizes - asciinema seems to work better in that case.

can script record vim editing session?

Not well, but asciinema does it wonderfully.

e.g.: https://asciinema.org/a/188770

Re: Asciinema – Record and share terminal sessions

#62
I’m a caring and loving woman with a good heart but still my spouse still cheats on me, he asks me for sex 6 times a day still i do it for him, upon all this he still cheats on me and it hurts so bad. I thank “Fred Anderson’’ for helping me out with hacking of my spouse phone, he also hacks every other thing you can think of, you should try him out and he collects money when you’re satisfied with the job. If not for this hacker I won’t know that the man I have been living with has been cheating on me. Contact him via email. andersontech65@gmailcom

Re: Asciinema – Record and share terminal sessions

#63
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…

Normal people want things that look cool and can be made with minimal effort. Some people can afford to stay in an abstract backend world without ever presenting anything to non developer people, but I think most of us live in the real world and use modern computers so they'd rather have the cpu run a few more cycles than having to think about the details themselves.

Re: Asciinema – Record and share terminal sessions

#65
post #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://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 (or their educational value diminishes). The project had a git repo that housed a collection of files following a light-weight syntax. Some complementary tooling "understood" this syntax and could create asciinema recordings while controlling pacing and execution. We then evolved this workflow into a FaaS triggered via PR and a github bot. Would like to potentially open-source the whole thing if I find some time to go through our internal approvals.

NET: Folks could add to the corpus following the modular syntax and issue a PR. About 3-5 minutes later, comments on the PR stream would have an animated svg/gif generated and added by the bot for review. If you liked how it looked, you accepted the PR. This corpus could then grow and be updated with minimal effort. A version of the client was modded to support self-signed certs and block accidental public upload. We ported asciinema to a helm chart that could run multiple versions on a k8s cluster per ingress path to complete the story. The whole apparatus existed entirely behind the firewall.

Re: Asciinema – Record and share terminal sessions

#68
post #25

'script' also does something similar, and is one of the lesser known commands. from the man page: script makes a typescript of everything displayed on your ter‐ minal. It is useful for students who need a hardcopy record of an interactive session as proof of an assignment, as the type‐ script file can be printed out later with lpr(1).

Could you explain how you get feature parity with asciinema with script? I've always found script to be kinda useless, myself.

You can't really use it to replay things because you can't regulate the symbol speed easily. Its not very helpful for its stated purpose because it maintains every keystroke in-stream, making normal typo corrections visible and confusing. And it's certainly not very share-able or stream-able.

Re: Asciinema – Record and share terminal sessions

#69
post #56

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

It's "ask-inema" in my head.

That's the obvious answer. This is a name that looks great when reading, but sounds awful when spoken.
Post reply on HN