We explored several tools to record terminal and share them. Most of those use tools like ttyrec or script or follow the same principles. clif is a fresh tool that records console sessions as optimized gif files. It uses web technologies like JS to do the job.
clif depends on child_pty, term.js omggif and phantomjs. child_pty is used to spawn a pseudo terminal which is captured. The captured frames are sent to phantomjs headless browser to render using term.js and screenshot. The gif is created using omggif.
- Small GIFs
- High quality (anti-aliased fonts)
- Rendered with CSS/JS, customizable
- Real-time parallel rendering
- Frame aggregation and customizable FPS
- Support for titles Terminal.app-style
- Supports Linux and OSX
To install clif, run:
$ sudo npm install -g clif
To record a session as out.gif, run:
$ clif out.gif
exit to finish the recording.
Syntax: clif [options] -h, --help output usage information -V, --version output the version number -c, --cols cols of the term  -r, --rows rows of the term  -s, --shell shell to use [/bin/bash] -f, --fps frames per second  -q, --qualityframe quality 1-30 (1 = best|slowest) 
On GitHub: clif
To install on Ubuntu:
$ sudo apt-get install byzanz