[Tutor] Clearing the screen?

John Precedo johnp@reportlab.com
Tue, 6 Feb 2001 11:42:09 -0000

Hi everyone!

I've been working with Python for a few months now, and I'm
beginning to get quite good at it. Well, one of my friends
has asked me a question, and it's bugging the hell out of me
that I can't answer it! Maybe one of you kind folks could

Right, say you have a program that does nothing fancy, just
prints output to STDIO. The output is nothing fancy
either -just text. But, you want to make each run distinct -
you don't want junk from one run cluttering up the screen on
the next run and confusing you.

Is there any simple way of clearing the screen? Something
like the old Basic CLS command?

(And yes, I know you could probably do it using Tkinter -
but I'm not going there for something so simple!)

Anyway, thanks in advance for any help.