You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
467B

  1. #! /usr/bin/env python3
  2. # Credits: Vuk Cosic - Deep ASCII - 1998
  3. from time import sleep
  4. def main():
  5. with open('deep.throat') as f:
  6. content = f.read()
  7. frames = content.split('[2K')[1:]
  8. try:
  9. print('\n' * 100)
  10. for i,frame in enumerate(frames):
  11. print(frame[:-4], flush=True)
  12. print('>', i)
  13. sleep(1/25)
  14. except KeyboardInterrupt:
  15. print('\r')
  16. if __name__ == '__main__':
  17. main()