Newbie question - clearing screen @ interactive prompt

Max Ischenko ischenko at gmail.com
Sat Dec 10 08:32:45 CET 2005


Well, you can run any system command from within Python as well:

import os
os.system('clear')

But I'm not sure this will help in this case. Are you trying to program
a console app in Python?  If so, you may want to look into curses
module or other console lib that  has Python bindings (like newt).

http://docs.python.org/lib/module-curses.html

HTH,
Max // http://max.textdriven.com




More information about the Python-list mailing list