ttyrec 是一个 tty 录制器。录制的数据可以使用附带的 ttyplay 命令进行回放。ttyrec 只是 script 命令的一个衍生版本,可以以微秒级精度记录时间信息。
它可以记录 emacs -nw、vi、lynx 或任何在 tty 上运行的程序。
例如,在 NetHack 社区中广泛用于存储游戏回放。
它类似于 script 命令,但还允许暂停、减速或加速回放。它还可以将录制的内容流式传输到网络,并可用于使用 uudecode 传输文件。
Usage
Recording
% ttyrec
(In the executed shell, do whatever you want and exit)
% ttyrec -e command
(command specified by -e option will be executed)
Playback
% ttyplay ttyrecord
-s2 option makes the playback speed doubled. With -p option, you can peek another person's ttyrecord in real time. Have fun!
You can change the speed while playback by the following key strokes.
"+" or "f" to speed up the playback twice "-" or "s" to speed down the
playback twice "1" to change the playback to the normal speed
注意:
您可以通过输入“exit”来结束录制。同时,您还可以在“ttyrec”后指定一个文件名。如果您不指定文件名,系统将自动创建一个。
录制器/播放器:
原始
ttyrec(Unix)
Term::
TtyRec(Perl)
Term::
TtyRec::Plus(Perl)
Tie::
Handle::TtyRec(Perl)
termrec(Win32,Unix)
仅回放
TTYPLAYER(Java)
IPBT(Unix)
ttyrec
,顺便说一下,Asciinema的共享和嵌入功能非常好。那部分非常棒。顺便说一句,如果您还添加pip安装方法,更多人会喜欢这个的 :) - Hossein