fixed trailing lines; print frame numbers

This commit is contained in:
valerio 2017-09-27 21:35:08 +02:00
parent c17cdd6e7e
commit 862548418e

View File

@ -9,8 +9,12 @@ def main():
frames = content.split('[2K')[1:] frames = content.split('[2K')[1:]
try: try:
print('\n' * 100) print('\n' * 100)
for frame in frames:
print(frame) for i,frame in enumerate(frames):
print(frame[:-4], flush=True)
print('>', i)
sleep(1/25) sleep(1/25)
except KeyboardInterrupt: except KeyboardInterrupt: