peterbrittain / asciimatics

A cross platform package to do curses-like operations, plus higher level APIs and widgets to create text UIs and ASCII art animations
Apache License 2.0
3.63k stars 237 forks source link

Record to a GIF ? #239

Closed bradparks closed 4 years ago

bradparks commented 4 years ago

I'd like to record an asciimatics animation to a gif, at the command line.

Any suggestions on how to do this? Thanks!

peterbrittain commented 4 years ago

I've not needed that as I use asciinema. However, a quick google online shows a couple of candidates

https://github.com/chjj/ttystudio https://github.com/icholy/ttygif

Take your pick!

peterbrittain commented 4 years ago

I'll leave this open for a bit in case the community has a better suggestion....

bradparks commented 4 years ago

Hey... thanks for the suggestions.. I'd tried ttygif but didnt get it to work, but ttystudio led me to a fork of it, toughtty that allows you to control when the recording starts, which works great for staring the recording manually.

My use case is generating fun gifs to paste into Slack that are branded with lol animations and text ;-) So I don't want anyone to actually see it was a terminal window at all, just a retro looking animation that I made super fast!

So in summary:

I found toughtty by browsing the active forks of ttystudio https://techgaun.github.io/active-forks/index.html#chjj/ttystudio

and then installed it under node v8

Example: https://imgur.com/a/0Su6pI6

peterbrittain commented 4 years ago

Nice.