0

Possible Duplicate:
clear terminal in python

How can I clear the window for all text, so that it looks like it has just been opened?

I've heard os.system("clear") works, but it didn't.

Using Python 2.6.5 on Windows 7

Community
  • 1
  • 1
Pappegye
  • 63
  • 3

2 Answers2

1

clear is for linux, I believe. cls should do the trick:

os.system("cls")

masonsbro
  • 80
  • 10
0

os.system('cls')

That should work

FlowofSoul
  • 510
  • 7
  • 17