代码拉取完成,页面将自动刷新
ttygif converts a ttyrec file into gif files. It's a stripped down version of ttyplay which calls
import
on every frame.
$ sudo apt-get install imagemagick ttyrec gcc
$ git clone https://github.com/icholy/ttygif.git
$ cd ttygif
$ make
$ sudo yum install ImageMagick gcc
$ # install ttyrec from source ~> https://github.com/mjording/ttyrec
$ git clone https://github.com/icholy/ttygif.git
$ cd ttygif
$ make
$ brew install imagemagick ttyrec
$ brew install https://raw.githubusercontent.com/icholy/ttygif/master/ttygif.rb
1. Create ttyrec recording
$ ttyrec myrecording
exit
when done recording.2. Create gif frames
$ ./ttygif myrecording
<zero_padded_index>_<delay_in_milliseconds>.gif
On OSX optionally you can set a -f flag which will bypass cropping which is needed for terminal apps which aren't full screen. Both standard Terminal and iTerm apps are supported.
$ ./ttygif myrecording -f
3. Create animated gif
$ ./concat.sh terminal.gif
On OSX use concat_osx.sh since in OSX version bunch of PNGs are dumped into a folder and used as source (for better image quality).
$ ./concat_osx.sh terminal.gif
The idea and approach was adapted from tty2gif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。