Re: [Tutor] writing over text

2007-07-10 Thread max .
thank you so much :) On 7/10/07, Bob Gailer <[EMAIL PROTECTED]> wrote: max . wrote: > hello i am writing a population script and was wondering if i can > just keep writing to the same line instead of printing a new line > every second import time for i in range(5): print chr(13), i,

Re: [Tutor] writing over text

2007-07-10 Thread Bob Gailer
max . wrote: > hello i am writing a population script and was wondering if i can > just keep writing to the same line instead of printing a new line > every second import time for i in range(5): print chr(13), i, time.sleep(1) # chr(13) = carriage return, and the trailing , suppress

Re: [Tutor] writing over text

2007-07-10 Thread Alan Gauld
"max ." <[EMAIL PROTECTED]> wrote > hello i am writing a population script and was wondering if i can > just keep > writing to the same line instead of printing a new line every second Depending on the terminal type you can use control codes to move the cursor. Thus on most Unix terminals you c

[Tutor] writing over text

2007-07-10 Thread max .
hello i am writing a population script and was wondering if i can just keep writing to the same line instead of printing a new line every second thanks ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor