Skip to main content
deleted 497 characters in body
Source Link

Python/Curses 200 194 182 121 117

Assumes file is in working directory andthe file name is stored in variable f.

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

Or, down to 121 when not using curses

import time,os;F=filefile.read(file(f)).split('\n')
while 1:
 for i in F:
  print i
  if i=='':time.sleep(1);os.system('cls')

Note: replace 'cls' with 'clear' if noon a unix based system, adding 2 chrs.

ctl+C to quit

Edit: Changed the filename method, now uses a variable (-6chrs)
Edit: Changed the for to iterate through the list F - Thanks ace (-12chrs)

Python/Curses 200 194 182 121

Assumes file is in working directory and file name is stored in variable f

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

Or, down to 121 when not using curses

import time,os;F=file.read(file(f)).split('\n')
while 1:
 for i in F:
  print i
  if i=='':time.sleep(1);os.system('cls')

Note: replace 'cls' with 'clear' if no a unix based system, adding 2 chrs.

ctl+C to quit

Edit: Changed the filename method, now uses a variable (-6chrs)
Edit: Changed the for to iterate through the list F - Thanks ace (-12chrs)

Python 117

Assumes the file name is stored in variable f.

import time,os
while 1:
 for i in file.read(file(f)).split('\n'):
  print i
  if i=='':time.sleep(1);os.system('cls')

Note: replace 'cls' with 'clear' if on a unix based system, adding 2 chrs.

ctl+C to quit

added 298 characters in body
Source Link

Python/Curses/Curses 200 194 182182 121

Assumes file is in working directory and file name is stored in variable f

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

Or, down to 121 when not using curses

import time,os;F=file.read(file(f)).split('\n')
while 1:
 for i in F:
  print i
  if i=='':time.sleep(1);os.system('cls')

Note: replace 'cls' with 'clear' if no a unix based system, adding 2 chrs.

ctl+C to quit

Edit: Changed the filename method, now uses a variable (-6chrs)
Edit: Changed the for to iterate through the list F - Thanks ace (-12chrs)

Python/Curses 200 194 182

Assumes file is in working directory and file name is stored in variable f

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

ctl+C to quit

Edit: Changed the filename method, now uses a variable (-6chrs)
Edit: Changed the for to iterate through the list F - Thanks ace (-12chrs)

Python/Curses 200 194 182 121

Assumes file is in working directory and file name is stored in variable f

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

Or, down to 121 when not using curses

import time,os;F=file.read(file(f)).split('\n')
while 1:
 for i in F:
  print i
  if i=='':time.sleep(1);os.system('cls')

Note: replace 'cls' with 'clear' if no a unix based system, adding 2 chrs.

ctl+C to quit

Edit: Changed the filename method, now uses a variable (-6chrs)
Edit: Changed the for to iterate through the list F - Thanks ace (-12chrs)

added 10 characters in body
Source Link

Python/Curses 200 194 182

Assumes file is in working directory and file name is stored in variable f

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

ctl+C to quit

Edit: Changed the filename method, now uses a variable (-6chrs)
Edit: Changed the for to iterate through the list F - Thanks ace (-12chrs)

Python/Curses 200 194 182

Assumes file is in working directory and file name is stored in variable f

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

ctl+C to quit

Edit: Changed the filename method, now uses a variable (-6chrs)
Edit: Changed the for to iterate through the list F - Thanks ace

Python/Curses 200 194 182

Assumes file is in working directory and file name is stored in variable f

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

ctl+C to quit

Edit: Changed the filename method, now uses a variable (-6chrs)
Edit: Changed the for to iterate through the list F - Thanks ace (-12chrs)

added 78 characters in body
Source Link
Loading
added 99 characters in body
Source Link
Loading
Source Link
Loading