ttystudio是记录终端操作的GIF记录器,可以记录终端的操作,然后转换为GIF或者APNG格式,不需要任何的外部依赖,bash脚本和gif连接。安装:$npminstallttystudio(添加-g参数就是全局安装)。
示例:
$ ttystudio output.gif --log $ vim hello world :q! $ ^Q # stop recording with ctrl-qinitializing writerwriting imagewriting headwriting frame 0 - 132 leftwriting frame 1 - 131 leftwriting frame 2 - 130 left...writing frame 131 - 1 leftwriting eofwrote image to /home/chjj/output.gif$ chromium output.gif# or if you wrote to output.png (an APNG)$ firefox output.png更多命令:
$ ttystudio output.gif --log # record and compile$ ttystudio frames.json --log # record$ ttystudio frames.json output.gif --range=0-50 # compile
评论