Re:Asciinema – Record and share terminal sessions
by toomuchtodo on Tuesday December 10, 2019 @11:44AM
(#21754077)
Please open source this if you can!
Re:Asciinema – Record and share terminal sessions
by whelming_wave on Tuesday December 10, 2019 @03:04PM
(#21756287)
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)
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.