ttyrec is a tty recorder
. Recorded data can be played back with the included ttyplay
command. ttyrec
is just a derivative of script
command for recording timing information with microsecond accuracy as well.
It can record emacs -nw
, vi
, lynx
, or any programs running on tty
.
It is widely used for example in the NetHack community for storing game replays.
It is similar to the script
command, but also allows for pausing, slowing down or speeding up playback. It can also stream the recording on the network and be used to transfer files with 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
Note:
You can end the recording by typing exit
. and also you can specify a filename after ttyrec
. if you don't specify one, it will create one.
Recorders/players
original ttyrec (Unix)
Term::TtyRec (Perl)
Term::TtyRec::Plus (Perl)
Tie::Handle::TtyRec (Perl)
termrec (Win32, Unix)
Playback only
TTYPLAYER (Java)
IPBT (Unix)
ttyrec
which by the way works prefectly fine just becasuse of the Sharing & embedding features Asciinema offers. that part was very neat. By the way I guess more people would enjoy this if you also add the pip installation method :) – Hossein Apr 12 '18 at 05:44