Joseph Quigley wrote on Thu, 21 Apr 2005 18:15:51 -0600: > In QBASIC there was the command "CLS" > this wiped the screen and "started printing letters to the screen at the > top " of the console window.
With a quick Google, it does indeed appear to be in the cookbook: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65257 (look under >>> Platform Testing <<<). For Windows this is: import os os.system('cls') It's actually just sending the cls command to the dos box it's running on, it's not built-in (hence the need for platform-specific code in the recipe above). > Is there any such command in Python? Would a Python cook book have this (I > have pay-by-the-minute dial-up Internet so I can't go online for long)? I'm tempted to say that if you need cls, you've got the wrong interface for your application :). Command line apps which wipe out the command line history are bad. You might prefer making a GUI or a web application instead. -- Yours, Andrei ===== Real contact info (decode with rot13): [EMAIL PROTECTED] Fcnz-serr! Cyrnfr qb abg hfr va choyvp cbfgf. V ernq gur yvfg, fb gurer'f ab arrq gb PP. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor