On Sat, 2004-12-25 at 07:43, Ishwor wrote: > On 24 Dec 2004 15:33:26 -0800, Lars <[EMAIL PROTECTED]> wrote: > > Hi Iswor, > > > > If I understand you correctly then your program is writing output to a > > console/terminal window and you want to clear that window. > > I don't know of any library methods for that, but you might just do: > > well i am not doing any console i/o. Just simple one. i am trying to > clear the IDLE (one of python IDE distributed with the original > distribution) screen which is pretty easy but having to do
> >>>import cls > >>> cls() > everytime is boring (2 lines of boredom!!) so what i want is to be > able to do just > >>>cls() > and nothing more or even less!! ;-) Assuming cls.cls() does the job for you, just add 'from cls import cls' to your pythonrc ( ${HOME}/.pythonrc on UNIX , NFI on windows ). On a side note, it'd be easier to read your post if you'd use the shift key more often :-P -- Craig Ringer -- http://mail.python.org/mailman/listinfo/python-list