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