asciinema 錄指令

使用工具:mac

tools: asciinema  and asciicast2gif ( 轉成 gif )

setup:

<span class="hljs-attr"><span class="hljs-attr"><span class="hljs-attr"><span class="hljs-attr"><span class="hljs-attr"><span class="hljs-attr">brew</span></span></span></span></span></span> <span class="hljs-string"><span class="hljs-string"><span class="hljs-string"><span class="hljs-string"><span class="hljs-string"><span class="hljs-string">install asciinema </span></span></span></span></span></span>
<span class="hljs-attr"><span class="hljs-attr"><span class="hljs-attr"><span class="hljs-attr"><span class="hljs-attr"><span class="hljs-attr">brew</span></span></span></span></span></span> <span class="hljs-string"><span class="hljs-string"><span class="hljs-string"><span class="hljs-string"><span class="hljs-string"><span class="hljs-string">install asciicast2gif</span></span></span></span></span></span>

rec command:

<span class="hljs-string"><span class="hljs-string"><span class="hljs-string"><span class="hljs-string"><span class="hljs-attr"><span class="hljs-attr">asciinema</span></span> <span class="hljs-string"><span class="hljs-string">rec demo.cast</span></span></span></span></span></span>

change gif command

<span class="hljs-selector-tag"><span class="hljs-selector-tag">asciicast2gif</span></span> <span class="hljs-selector-tag"><span class="hljs-selector-tag">-t</span></span> <span class="hljs-selector-tag"><span class="hljs-selector-tag">monokai</span></span> <span class="hljs-selector-tag"><span class="hljs-selector-tag">demo</span></span><span class="hljs-selector-class"><span class="hljs-selector-class">.cast</span></span> <span class="hljs-selector-tag"><span class="hljs-selector-tag">demo</span></span><span class="hljs-selector-class"><span class="hljs-selector-class">.gif</span></span>

sample:

ref:

https://github.com/asciinema/asciicast2gif
https://asciinema.org/docs/installation