Newbie question - clearing screen @ interactive prompt

Max Ischenko ischenko at gmail.com
Sat Dec 10 02:32:45 EST 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