tty2gif

record your scripts into a gif

  • 所有者: z24/tty2gif
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Intro

tty2gif let you record scripts and their outputs into both binary and
gif formats.

Just like the original script, tty2gif first pomp up a temporary
shell where you can type in your shell commands. Meanwhile, tty2gif
will record both your inputs, and the output results. When you finish
recording, just execute exit in the temporary terminal. Finally,
tty2gif will store all above information into a binary file, named
file.raw. If you provide the second argument, named out.gif,
tty2gif will replay recorded process, and convert the it into a gif
animation.

tty2gif also can be used to convert an exist binary file into a gif
animation. Just feed it with an exist binary file name as the first
argument, and the output gif file name as the second argument.

Unlike other implementations, tty2gif provides a uniform solution
with a single simple C/C++ source file. I only tested it on Linux with
Bash. Feel free to report any bugs or port it into other systems, like
BSD based systems.

The script function part is inspired by the code in the book:
The Linux Programming Interface

Usage

$ ./tty2gif file.raw [out.gif] [delay(ms)]

file.raw: output binary file name OR an exist binary script
out.gif: output gif animation file name
delay: change speed in milliseconds for gif, e.x., +10 or -10

For Mac users, if you want to produce gif files, you have to run tty2gif under
a xterm since we use X window to compose the animation. Also make sure
installed ImageMagick package has been built with X11 support, for example,
through brew install imagemagick --with-x11.

Install

tty2gif depends on the Magick++ library. If you need to optimize the output
gif (since v0.2), you have to have ImageMagick>= 6.8.6-4. After that, just
make

Demo

gif

Contact

Youjie Zhou // z24.me

主要指標

概覽
名稱與所有者z24/tty2gif
主編程語言C++
編程語言C++ (語言數: 2)
平台
許可證
所有者活动
創建於2013-08-21 01:41:41
推送於2023-05-07 15:13:16
最后一次提交2023-05-07 08:13:16
發布數2
最新版本名稱v0.2 (發布於 2014-10-03 13:11:16)
第一版名稱v0.1 (發布於 2014-10-03 13:10:23)
用户参与
星數158
關注者數10
派生數11
提交數9
已啟用問題?
問題數6
打開的問題數3
拉請求數0
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?