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