[Tutor] re clear screen
alan.gauld@bt.com
alan.gauld@bt.com
Mon Nov 11 11:49:04 2002
> > os.system("cls")
> > os.system("clear")
> Wow on M$ it's cls and on UNIX clear? How unbelievably unpythonesque.
Nope, its just the underlying operating systems. Its Bill Gates and
Ken Thompson who should be brought together if anyone - although CLS
actually comes from CP/M so maybe its, the now dead, Gary Kildall,
the inventor of CP/M, we should shout at!
I suppose python could provide a system dependant clearScreen() command
in the os module or something, but it would just look like the one
posted, full of "if os==/elif..."
And quite how we should clear a teletype or WAP terminal remains a
mystery - 24 newlines as a default seems kind of wrong somehow.
Alan g.