Re: [Tutor] clear screen inside python interpreter

2009-08-06 Thread Alan Gauld
"Monte Milanuk" wrote Okay, simple question: is there anything similar to to 'clear' or 'cls' to clean up a console window full of commands in the python shell? Short of exiting and restarting the interpreter I'm not having a lot of luck here. Terminal control is very system dependant. Fre

Re: [Tutor] clear screen inside python interpreter

2009-08-06 Thread Nick Raptis
I don't think there's a Python command to do this. You can always print enough newlines to clear your view of the window: print "\n" * 80 or use os.system to issue a command the shell/terminal/cmd will understand import os os.system("cls") or import os os.system("clear") I resently made a

[Tutor] clear screen inside python interpreter

2009-08-06 Thread Monte Milanuk
Okay, simple question: is there anything similar to to 'clear' or 'cls' to clean up a console window full of commands in the python shell? Short of exiting and restarting the interpreter I'm not having a lot of luck here. Thanks, Monte ___ Tutor mailli