"터미널 세션 녹화도구 asciinema"의 두 판 사이의 차이

 
(사용자 3명의 중간 판 22개는 보이지 않습니다)
2번째 줄: 2번째 줄:
;asciinema
;asciinema
;아스키네마
;아스키네마
*터미널 세션 저장/공유 도구
* 터미널 세션 녹화/공유 도구
:동영상처럼 보이지만 텍스트임
* 시각별 쉘 입출력 내용을 JSON 형식으로 저장함
*지원OS: 리눅스, 맥, FreeBSD
*지원OS: 리눅스, 맥, FreeBSD
*python 기반


https://asciinema.org/assets/new-logo-bars-28f2f3b571cd6783c927d0003148db87.png
==사용예시==
<syntaxhighlight lang='console'>
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.
</syntaxhighlight>
<syntaxhighlight lang='console'>
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"
  }
}
</syntaxhighlight>
 
==#==
<syntaxhighlight lang='html' run outheight='400'>
<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>
</syntaxhighlight>
 
<syntaxhighlight lang='html' run outheight='400'>
<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>
</syntaxhighlight>


==같이 보기==
==같이 보기==
*[[리눅스 asciinema 설치]]
* [[CentOS asciinema 설치]]
* [[우분투 asciinema 설치]]
* [[리눅스 lolcat]]


==참고 자료==
==참고==
*https://asciinema.org/
*https://asciinema.org/


[[분류: 소프트웨어]]
[[분류: 소프트웨어]]
[[분류: asciinema]]

2022년 1월 26일 (수) 02:36 기준 최신판

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 }}