ttygif is described as 'Convert terminal recordings to animated gifs' and is an app in the OS & Utilities category. There are four alternatives to ttygif for Linux, Mac, Python and BSD. The best alternative is Asciinema, which is both free and Open Source. Other great apps like ttygif are showterm (Free, Open Source), terminalizer (Free, Open Source) and ttyrec (Free, Open Source).
ttyrec is a program and/or its file format capable of recording the TTY output of a text-mode program together with timestamps and then replaying it. It is widely used for example in the NetHack community for storing game replays.