Clearing the screen
Artur M. Piwko
pipene-news at pu.kielce.pl
Sat Jan 1 16:07:15 EST 2005
In the darkest hour on Sat, 25 Dec 2004 09:41:54 +1030,
Ishwor <ishwor.gurung at gmail.com> screamed:
>>>> def cls():
> for i in range(1,40):
> print " ";
>
Slightly ot, but perhaps this'll work for you:
def cls():
print "\033[2J"
--
[ Artur M. Piwko : Pipen : AMP29-RIPE : RLU:100918 : From == Trap! : SIG:217B ]
[ 22:06:17 user up 10478 days, 10:01, 1 user, load average: 0.06, 0.06, 0.06 ]
Even God cannot change the past.
More information about the Python-list
mailing list