[Tutor] Clearing the screen?
Tue, 6 Feb 2001 23:17:57 +1100
Don't know if this is the answer your looking for - but you could say
print a whole bunch of empty line...like say
pirnt "\n" * 50
It sorta clears the screen :)
----- Original Message -----
From: John Precedo <firstname.lastname@example.org>
To: python-tutor mailing list <email@example.com>
Sent: Tuesday, February 06, 2001 10:42 PM
Subject: [Tutor] Clearing the screen?
> 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.
> Tutor maillist - Tutor@python.org