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