Linux 终端会话录制成 SVG 动画

Posted on Posted in python

Linux 终端会话录制成 SVG 动画

安装

pipenv install termtosvg pyte python-xlib svgwrite

使用

(py-np11W-p9) -> root@9b23690f4f0a ~/py ☺  # termtosvg
Recording started, enter "exit" command or Control-D to end
(py-np11W-p9) -> root@9b23690f4f0a ~/py ☺  # 
(py-np11W-p9) -> root@9b23690f4f0a ~/py ☺  # mkdir mydir
(py-np11W-p9) -> root@9b23690f4f0a ~/py ☺  # cd mydir 
(py-np11W-p9) -> root@9b23690f4f0a ~/py/mydir ☺  # touch file.txt
(py-np11W-p9) -> root@9b23690f4f0a ~/py/mydir ☺  # cd ../
(py-np11W-p9) -> root@9b23690f4f0a ~/py ☺  # uname -a
Linux 9b23690f4f0a 4.9.93-boot2docker #1 SMP Thu Jul 19 18:29:50 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
(py-np11W-p9) -> root@9b23690f4f0a ~/py ☺  # 
Recording ended, SVG animation is /tmp/termtosvg_bd53n3_f.svg

aaaaa

Leave a Reply

Your email address will not be published. Required fields are marked *

eight − 5 =