svg-term-cli: Render Asciinema Casts to

๐Ÿ’ก 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

  • โ€”-cast
    bash
    # cast_id๋Š” `https://asciinema.org/a/${asciinema_id}`๋ฅผ ํ™•์ธ
    svg-term --cast=${cast_id} --out examples/output.svg
  • โ€”-in
    bash
    # ๋กœ์ปฌํŒŒ์ผ ์‚ฌ์šฉ
    svg-term --in=${file} --out examples/output.svg
  • โ€”-command
    bash
    # ์†Œ์Šค์ฝ”๋“œ ๋ถ„์„๊ฒฐ๊ณผ 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}

Comments

Leave a Reply

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