Live data from Hacker News

Asciinema – Record and share terminal sessions

asciinema.org

81–90 of 103 posts

Re: Asciinema – Record and share terminal sessions

#81
post #79

Earlier quoted context omitted.

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.

It's still there. The "Pen Island" pen company. God damn.

Re: Asciinema – Record and share terminal sessions

#85
post #79

Earlier quoted context omitted.

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.

I love how the banner tries to undo the confusion: PENislandPENS.

Re: Asciinema – Record and share terminal sessions

#86
Asciinema is great and a joy to use, but one of the coolest things about how Asciinema is made is that the web player implements a virtual terminal emulator in Clojure:

https://github.com/asciinema/vt/blob/master/src/asciinema/vt...

It's cljc, which means it runs on both JVM and in JS. I have no idea if they actually use the JVM bit.

Re: Asciinema – Record and share terminal sessions

#87
Two threads from 2018: https://news.ycombinator.com/item?id=17048922

https://news.ycombinator.com/item?id=16409429

Related from 2016: https://news.ycombinator.com/item?id=12090020

Three from 2015: https://news.ycombinator.com/item?id=10398635

https://news.ycombinator.com/item?id=9753537

https://news.ycombinator.com/item?id=9072218

First posted in 2013, getting a single dismissive response: https://news.ycombinator.com/item?id=6556106

Lots more with few comments: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

Re: Asciinema – Record and share terminal sessions

#88

Earlier quoted context omitted.

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!

You might be able to create something similar by combining expect with asciinema, like

  $ expect_command='
  log_user 0
  spawn bash
  interact timeout 1 return
  send "ps aux | rg asciinema\n"
  interact timeout 3 return
  exit
  '
  $ asciinema rec somefile -c 'expect -c '\'"$expect_command"\'
using interact timeout as a sort of checkpoint to show output, though if you want to send single quotes you'll have to make sure they get escaped in the inner command (or just have the script in a file for expect to read)

Re: Asciinema – Record and share terminal sessions

#89
post #79

Earlier quoted context omitted.

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

I love how the banner tries to undo the confusion: PENislandPENS.

Their logos are pretty great too.

Re: Asciinema – Record and share terminal sessions

#90
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?

A while ago I played around, and create a small tool that can do that: https://github.com/elisescu/goscript

It's a single binary (as cross platform as golang gets), which records a terminal session into a single html file which you can open for playback in the browser.

Any feedback is very much welcome :)

Post reply on HN