tty2gif let you record terminal scripts and their outputs into both binary and gif animations. tty2gif also can be used to convert an existing binary script file into a gif animation.