터미널 세션 녹화도구 asciinema

(터미널 세션 녹화도구 Asciinema에서 넘어옴)

1 개요[ | ]

asciinema
아스키네마
  • 터미널 세션 녹화/공유 도구
동영상처럼 보이지만 텍스트임
  • 시각별 쉘 입출력 내용을 JSON 형식으로 저장함
  • 지원OS: 리눅스, 맥, FreeBSD
  • python 기반

2 사용예시[ | ]

root@zetawiki:~# asciinema rec test.json
~ Asciicast recording started.
~ Hit Ctrl-D or type "exit" to finish.
root@zetawiki:~# whoami 
root
root@zetawiki:~# exit
exit
~ Asciicast recording finished.
root@zetawiki:~# cat test.json
{
  "command": null,
  "version": 1,
  "height": 33,
  "stdout": [
    [
      0.009768,
      "\u001b]0;root@zetawiki: ~\u0007root@zetawiki:~# "
    ],
    [
      1.311283,
      "w"
    ],
    [
      0.11219,
      "h"
    ],
... (생략)
    [
      0.220463,
      "i"
    ],
    [
      0.131366,
      "t"
    ],
    [
      0.55627,
      "\r\n"
    ],
    [
      0.000149,
      "exit"
    ],
    [
      5.1e-05,
      "\r\n"
    ]
  ],
  "title": null,
  "duration": 5.812531,
  "width": 102,
  "env": {
    "TERM": "xterm",
    "SHELL": "/bin/bash"
  }
}

3 #[ | ]

<link rel="stylesheet" type="text/css" href="https://unpkg.com/asciinema-player@3.0.0-rc.1/dist/bundle/asciinema-player.css" />
<div id="demo" style='width:500px'></div>

<script src="https://unpkg.com/asciinema-player@3.0.0-rc.1/dist/bundle/asciinema-player.min.js"></script>
<script>AsciinemaPlayer.create('https://asciinema.org/a/28307.cast', document.getElementById('demo'))</script>
<link rel="stylesheet" type="text/css" href="https://unpkg.com/asciinema-player@3.0.0-rc.1/dist/bundle/asciinema-player.css" />
<div id="demo" style='width:500px'></div>

<script src="https://unpkg.com/asciinema-player@3.0.0-rc.1/dist/bundle/asciinema-player.min.js"></script>
<script>AsciinemaPlayer.create('data:application/json;base64,eyJjb21tYW5kIjpudWxsLCJ2ZXJzaW9uIjoxLCJoZWlnaHQiOjMzLCJzdGRvdXQiOltbMC4wMDk3NjgsIlx1MDAxYl0wO3Jvb3RAemV0YXdpa2k6IH5cdTAwMDdyb290QHpldGF3aWtpOn4jICJdLFsxLjMxMTI4MywidyJdLFswLjExMjE5LCJoIl0sWzAuMjIwNDYzLCJpIl0sWzAuMTMxMzY2LCJ0Il0sWzAuNTU2MjcsIlxyXG4iXSxbMC4wMDAxNDksImV4aXQiXSxbNS4xZS0wNSwiXHJcbiJdXSwidGl0bGUiOm51bGwsImR1cmF0aW9uIjo1LjgxMjUzMSwid2lkdGgiOjEwMiwiZW52Ijp7IlRFUk0iOiJ4dGVybSIsIlNIRUxMIjoiL2Jpbi9iYXNoIn19Cg==', document.getElementById('demo'));</script>

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}