Skip to main content
1 of 6

Python/Curses 200

Assumes file is in working directory and is called F.txt

from curses import*;import time;s=initscr();F=file.read(file('F.txt')).split('\n');y=0
while 1:
 for i in range(len(F)):
  s.addstr(y,0,F[i]);s.refresh();y+=1
  if F[i]=='':y=0;s.clear();time.sleep(1)

ctl+C to quit