fixed trailing lines; print frame numbers
This commit is contained in:
parent
c17cdd6e7e
commit
862548418e
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user