๐ก svg-term-cli: Render Asciinema Casts to โ Executive Summary
Technical architectural analysis, practical configuration manifests, and deployment instructions for svg-term-cli: Render Asciinema Casts to.
References and Guidelines (NOTE)
In order to directly expose terminal operations to Github README.md, etc., a keyframe SVG file is created based on
a terminal operation recording tool.
Available when the asciinema status is public or unlisted.
setup
bash
npm install -g svg-term-cli
exec
inputs
-
โ-castbash
# cast_id๋ `https://asciinema.org/a/${asciinema_id}`๋ฅผ ํ์ธ svg-term --cast=${cast_id} --out examples/output.svg -
โ-inbash
# ๋ก์ปฌํ์ผ ์ฌ์ฉ svg-term --in=${file} --out examples/output.svg -
โ-commandbash
# ์์ค์ฝ๋ ๋ถ์๊ฒฐ๊ณผ svg-term --command ํ๋๊ทธ ๋์์ # asciinema rec -c $STRING ์ด ์ ๋ ฅ๋์ด ๋์ํจ.
flags
bash
# Window Frame ์ถ๊ฐ
--window
# ์ปค์ ์ ๊ฑฐ
--no-cursor
# ์์์๊ฐ ์ฌ์ ์
--from=${millis}
Features
Test
bash
export cast_id=j8flSOIU1YOiYDVnW5FJQX2dD
export from=17500
export to=25000
svg-term --cast=${cast_id} --out examples/t1.svg
svg-term --cast=${cast_id} --out examples/t2.svg --window
svg-term --cast=${cast_id} --out examples/t3.svg --window --no-cursor
svg-term --cast=${cast_id} --out examples/t4.svg --window --no-cursor --from=${from}
svg-term --cast=${cast_id} --out examples/t5.svg --window --no-cursor --from=${from} --to=${to}




Leave a Reply