2019-02-25 11:27:32 +00:00
|
|
|
# asciinema
|
|
|
|
|
|
|
|
> 录制和播放终端会话, 也可以把他们分享到 asciinema.org.
|
|
|
|
|
|
|
|
- 将本地安装的`asciinema`与asciinema.org账号关联:
|
|
|
|
|
|
|
|
`asciinema auth`
|
|
|
|
|
|
|
|
- 进行新的录制(完成后,将提示用户上传或在本地保存:
|
|
|
|
|
|
|
|
`asciinema rec`
|
|
|
|
|
|
|
|
- 进行新的录制,保存到本地的文件中:
|
|
|
|
|
2019-02-25 14:55:39 +00:00
|
|
|
`asciinema rec {{文件路径}}.cast`
|
2019-02-25 11:27:32 +00:00
|
|
|
|
|
|
|
- 从本地文件中播放终端录屏:
|
|
|
|
|
2019-02-25 14:55:39 +00:00
|
|
|
`asciinema play {{文件路径}}.cast`
|
2019-02-25 11:27:32 +00:00
|
|
|
|
|
|
|
- 在asciinema.org中播放终端录屏:
|
|
|
|
|
2019-02-25 14:55:39 +00:00
|
|
|
`asciinema play https://asciinema.org/a/{{文件ID}}`
|
2019-02-25 11:27:32 +00:00
|
|
|
|
|
|
|
- 进行新的录制, 将闲置时间设置为最多 2.5 秒:
|
|
|
|
|
|
|
|
`asciinema rec -i {{2.5}}`
|
|
|
|
|
|
|
|
- 打印本地保存的录像的完整输出:
|
|
|
|
|
2019-02-25 14:55:39 +00:00
|
|
|
`asciinema cat {{文件路径}}.cast`
|
2019-02-25 11:27:32 +00:00
|
|
|
|
|
|
|
- 从本地上传一个录屏到asciinema.org:
|
|
|
|
|
2019-02-25 14:55:39 +00:00
|
|
|
`asciinema upload {{文件路径}}.cast`
|