You can use the command shell:
# with windows
import os
os.system("CLS")
or
# with linux
import os
os.system('clear')
or
# if you don't mind that the cursor is at the bottom
print '\n' * 25
Actually, the best way is to design your program so you don't need the clear the screen.
Last edited by vegaseat; Aug 15th, 2006 at 7:45 pm.
Reputation Points: 1333
Solved Threads: 1403
DaniWeb's Hypocrite
Offline 5,792 posts
since Oct 2004