So I spent a little bit of time tonight tinkering on Linux. I got interested in tty recording/playback after seeing some nethack things. I figured if I could find something that works well for playback of tty recordings it would be helpful on my blog. Enter: jsttyplay
This is a nice little tool using Perl and JavaScript to handle playback of terminal sessions recorded using ttyrec.
Here’s a demo of how to get things setup, including making a video and editing the HTML to play it.
I plan to start work on making a WordPress plugin for this so I can embed these a bit easier. Here’s a screenshot of what the player looks like (using jsttyplay):
If you don’t have ttyrec, install it with your system’s package manager; in my case, I have Debian so I will use apt-get.
apt-get install ttyrec
Create a recording of your console by executing ttyrec. When you’re finished, just type exit. In the same directory you’ll find a ttyrecord file. This is the file you will use as the binary data for jsttyplay (git clone https://encryptio.com/git/jsttyplay.git). There is a test.html file included in the git repo that you can hack up and modify line line 33 to point to the path of your ttyrecord file.


I love tech stuff this is so cool.
Rich, I could not find a link (on my Galaxy Tab) to the video. I looked below the apt-get line. See: http://www.techish.net/linux/ttyrec-playback-using-jsttyplay-and-wordpress/.
Interesting blog.
Hi Tom -
The file(s) got mixed up and now when you click on the “jstty-play demo” button it should work (provided you have JavaScript support enabled).
Let me know if there are further problems. Thanks again!