ttygif | ttyrec to gif | Animation library
kandi X-RAY | ttygif Summary
kandi X-RAY | ttygif Summary
Generate an animated GIF by playing ttyrecord (by ttyrec) and taking screenshots of your terminal.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ttygif
ttygif Key Features
ttygif Examples and Code Snippets
Community Discussions
Trending Discussions on ttygif
QUESTION
I'm new to asciimatics and would like to export animations I'm making to a GIF, at the command line. Note that I want to ONLY record the animation itself, not me starting some command in the terminal to record the gif as well.
I've looked at the docs, but don't see an asciimatics way to do this?
Note that I'm aware of things like ttygif, but tried to use it and couldn't get it to work with asciimatics, probably due to me not understanding how to use it.
...ANSWER
Answered 2019-Dec-08 at 00:12You can do this using toughtty - it 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:- get your animation ready to record
- start the recorder, toughtty by running
$ toughtty record frames.json
- start your animation. Note that recording hasn't started yet.
- once your animation is running, press Ctrl+T to start recording
- when you think it's good, press Ctr+C to stop the recording
- generate your gif by running
toughtty encode --delay 100 out.json test.gif
- open the test.gif in your browser to view the animation!
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
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ttygif
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page