In a console app, an ascii spinner can be used, like the GUI wait cursor, to indicate that work is being done. A common spinner cycles through these 4 characters: '|', '/', '-', '\'
What are some other cyclical animation sequences to spice up a console application?
If you know how far through the process you are I like the percentage bar. It looks nice, feels intuitive and is easy to implement:
(Examples above are not exact)
There used to be a a DOS linker named blinker, by Blink Inc. It would display an animation similar to this while it was working:
With the first frame displaying for about a second, and the other two animating briefly once a second or two, making the command line appear to blink its eyes. The effect was pretty cool, actually.
The linker even had options to blink one eye, and you could choose which eye would blink.
I have seen
In bash to continually build a progress bar based on a block character.
Courtesy of a co-worker of mine, here's a nifty implementation in C:
From my analysis, it only works on a little-endian machine with at least 32-bit words and the ASCII character set. But it's rather diabolically clever.
Lots of choices with Unicode, including ⌚ and ⌛!
← ↖ ↑ ↗ → ↘ ↓ ↙
▁ ▂ ▃ ▄ ▅ ▆ ▇ █ ▇ ▆ ▅ ▄ ▃ ▁
▉▊▋▌▍▎▏▎▍▌▋▊▉
▖ ▘ ▝ ▗
┤ ┘ ┴ └ ├ ┌ ┬ ┐
◢ ◣ ◤ ◥
◰ ◳ ◲ ◱
◴ ◷ ◶ ◵
◐ ◓ ◑ ◒
◡◡ ⊙⊙ ◠◠
⣾⣽⣻⢿⡿⣟⣯⣷ ⠁⠂⠄⡀⢀⠠⠐⠈
The entire braille block, even in random order http://www.fileformat.info/info/unicode/block/braille_patterns/images.htmDefinitely LOLLERSKATES!