Open rsteube opened 1 year ago
This is quite interesting @rsteube, nice work and really clever stuff.
There is definitely something here. Would be really cool to remove the dependency on the browser all together and make terminal GIFs purely in the terminal eventually 😄
The .svg format would be the bomb. Lets you copy/paste the commands shown.
I'm also looking for this !
Thanks @rsteube for the snippet ! I use it and it works very well!
This is probably out of scope but would be nice to have asciicast output (
Output: out.cast
). I initally wantedgif
for the readme andasciicast
for the mdbook documentation but then decided againstgif
due to it's size. Managed to record it by simply spawning anasciinema
recording withintmux
. Keeping size in sync with the other outputs could be challenge but there are alsogif
,svg
,.. generators available forasciicast
. It might even provide an alternative to the chrome dependency (which pushes my cpu to the limit).Example
Source: https://github.com/rsteube/carapace-bin/blob/18ca32ea6093b965e4949a13ccce85f9108ca65c/carapace-bin.tape
Asciicast
Gif
GIF output with agg (ignore the missing symbols, didn't get the font right)
Svg
SVG output with svg-term-cli (nice output but high load for playing it)
related #105