Clearing the screen (Was: Re: [Tutor] newbie programmer)
Gerrit Holl
gerrit@nl.linux.org
Wed Jun 4 11:03:02 2003
Alan Gauld schreef op woensdag 4 juni om 15:53:22 +0000:
> print '\n' * 50
Make that:
print os.linesep * 50
> Or be very clever and send the appropriate terminal control
> codes (ANSI for DOS, VT100 for Xterms on Unix)
Of course, Python could be able to do this: first find out
platfrom information, then terminal information, than clear
the screen.
yours,
Gerrit.
--
189. If he has not taught him his craft, this adopted son may return to
his father's house.
-- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
http://www.sp.nl/