screen FLY by, where is the pause? Debug needed

Alex alex at somewhere.round.here
Thu Sep 16 16:06:59 EDT 1999


I don't use windows, but maybe you could use popen? 

from os import popen
lines=popen(command).readlines()
for line_index in range(0,len(lines),20):
  for line in lines[line_index:line_index+20]:
    if line[-1]=='\n':print line[:-1]
    else:print line
  raw_input('Press return to continue ')

Alex.




More information about the Python-list mailing list