|
A common way to do that is to print your lines with carriage returns instead of line feeds; on many terminals, this causes the cursor to return to the left margin without moving to a new line, so when text is replaced with new text in the same spot, you get something which resembles an animation.
|