demo code for terminal animate