cls

Charles G Waldman cgw at fnal.gov
Fri May 21 17:50:04 EDT 1999


Marek Polanski writes:
 > ok. I have really lame question, but problem is killing me, and I 
 > cannot find solution. I need equivalent of 'cls' command in python. 
 > TIA for help.

It depends on the type of system you're running on, and the type of
terminal emulator.  For anything which supports VT100-type commands
(this includes most terminal emulators!) you can use

print chr(27)+"[2J"





More information about the Python-list mailing list