mpu icon indicating copy to clipboard operation
mpu copied to clipboard

Add a spinner

Open MartinThoma opened this issue 5 years ago • 1 comments

import itertools, sys, time
spinner = itertools.cycle(['-', '/', '|', '\\'])
while True:
    sys.stdout.write(spinner.next())  # write the next character
    sys.stdout.flush()                # flush stdout buffer (actual character display)
    sys.stdout.write('\b')            # erase the last written char
    time.sleep(0.1)

MartinThoma avatar Oct 09 '18 10:10 MartinThoma