|72875d7a39||8 years ago|
|README.md||9 years ago|
|VT100.js||9 years ago|
|index.html||9 years ago|
|qemu.script||9 years ago|
|qemu.time||9 years ago|
|scriptreplay.js||8 years ago|
|starwars.script||9 years ago|
|starwars.time||9 years ago|
scriptreplay are part of the
bsdutils package in Debian and
util-linux-ng in Fedora and
util-linux in SUSE. They allow to
capture a terminal or script output and replay it, respectively.
This page uses the vt100 emulator by Frank Bi and adds code of my own to read typescript and timing files to make it possible to replay captured scripts a web browser.
By adding an upload facility to this it would be possible to have a youtube or pastebin for terminal sessions. Due to laziness this remains a proof of concept for now though.
$ watch "tput cols; tput lines"
$ SHELL=/bin/sh TERM=vt100 script -t typescript 2> timingfile
Do your stuff and when done exit script with
To test how your recorded session looks like, use:
$ scriptreplay timingfile typescript
typescriptinto form above and hit the play button.