Skip to content

Instantly share code, notes, and snippets.

@whistler
Created March 26, 2015 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whistler/f4b3c39eb2804c6c36fd to your computer and use it in GitHub Desktop.
Save whistler/f4b3c39eb2804c6c36fd to your computer and use it in GitHub Desktop.
Backspace Test
import sys
import time
for i in range(10):
print '\r', # print is Ok, and comma is needed.
time.sleep(0.3)
print i,
sys.stdout.flush() # flush is needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment