A ComputerCraft screen recorder. Saves your terminal output as an animated GIF.
Requires my GIF API and BBPack, though these should be downloaded automatically if they're missing.
Also requires a Minecraft font file, saved as "ascii.gif". It'll auto-download a low-res one if it's missing, via:
bbpack get Y0eLUPtr
… but, if you don't mind longer encoding times, you can get a high-res one by manually running:
bbpack get QCwtu5sK
The script will use an alternate font if it detects CC 1.76 or later:
bbpack get CnLzL5fg
Which can again be replaced by a high-res version, if you wish:
bbpack get vtKWYMqa
Usage:
recgif [-i] [-s] [-ld:<num>] [scriptToRecord] [scriptArgs ...]
If the -i flag is used, then key/mouse_events will be logged at the bottom of the animation.
If -s is used, then the last frame will be skipped, excluding it from the animation. Handy for those cases where you want to avoid a big red "Terminated" message being captured when you hit Ctrl + T.
If -ld: is used, then it must be followed immediately by a number (no spaces). This sets the delay of the last frame in the animation in seconds. The default is two.
If no script is specified, simply starts another CraftOS shell and records that.
Version History
2015/10/071.0.0
Initial release.
2015/10/08
1.0.1
Bug fixes.
2015/10/11
1.1.0
More bug fixes (and the arg bug squashed for reals this time).
Blinking text cursors are now recorded.
User input can now be included in the animations.
2015/12/21
1.1.1
Support for CC1.76's font.
2016/02/01
1.1.2
Fixes to scrolling and CC1.76's new characters.
2016/02/16
1.1.3
Fix for older CC builds.
2016/03/27
1.1.4
Fixes for blinking cursor.
Added -ld and -s parameters.
Default animation delay on end frame reduced from 5s to 2s.
2016/05/06
1.1.5
Fix where final display write may've been omitted from some GIFs.
2016/05/17
1.1.6
Fixes some sort of crash bug. I think.
2017/06/20
1.1.7
Changed "package" references to "bbpack".