Clearing the screen

Lars lars-www at lycos.com
Fri Dec 24 18:33:26 EST 2004


Hi Iswor,

If I understand you correctly then your program is writing output to a
console/terminal window and you want to clear that window.
I don't know of any library methods for that, but you might just do:

os.system("cls")      #for windows
or
os.system("clear")   #for unix
Not the most advanced solution though.
---
Happy holidays! 
~Lars




More information about the Python-list mailing list