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,
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
"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