Cross-platform CLI GIF maker based on JS+Web.
On OS X, install latest Xcode command line tools, even if you think you already have them:
Then, go through the Apple dialogue to download and install them. Now, you’re ready to install Surge’s version of clif with:
npm install -g @surge/clif
Note, you’ll need to be running firstname.lastname@example.org or greater to do this. You can check what version you’re using with:
…and upgrade with:
sudo npm install -g npm
You can omit
sudo if you are using Windows.
exit to finish and save the recording.
npm install -g clif.
clif builds mainly on four projects:
child_pty is used to spawn a pseudo terminal from
which we can capture the entirety of input and output.
Each frame that's captured is asynchronously sent to
phantomjs headless browser to render using
The GIF is composited with
omggif and finally written
out to the filesystem.
Usage: clif [options] <outfile>Options:-h, --help output usage information-V, --version output the version number-c, --cols <cols> Cols of the term -r, --rows <rows> Rows of the term -s, --shell <shell> Shell to use [/bin/bash]-f, --fps <fps> Frames per second -q, --quality <q> Frame quality 1-30 (1 = best|slowest) 
You can edit the styles in
lib/client.js and the recompiling:
npm run compile
phantomwith a terminal rendered on top of
node-canvasor low-level graphic APIs. terminal.js seems like a good candidate to add a