views:

222

answers:

1

When we work with a regular windows command prompt we can clear the screen by typing cls command.

How I can do the same in IronPython console (ipy)?

+3  A: 
import System.Console
System.Console.Clear()
PiotrLegnica
It definitely works and that why you earn +1. I just wonder if there's a shorter version. Of course, I can wrap it inside my own function.
Vadim
IPython (http://ipython.scipy.org/moin/) has 'cls' alias predefined, but I don't know whether it works with IronPython.
PiotrLegnica