general purpose animation framework for the PECL ncurses extension