Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread bruce
elif os.name in ("nt", "dos", "ce"): # emacs/Windows What`s the right statement here? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread A. L.
I have tested it under windows python console, and it works. Thank you very much. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread Steven D'Aprano
On Thu, 15 Sep 2005 21:18:33 -0700, A. L. wrote: > In Python interactive mode, is there some function acting like 'clear' > command in bash? Could somebody here give some advice? > > Thanks in advance. Something like this may help: def clearscreen(numlines=100): """Clear the console.

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread A. L.
Thank you very much. I have tested it under Cygwin, and that works. But it fails under Windows Python Shell Mode. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to clear screen in Python interactive shell mode?

2005-09-16 Thread Laszlo Zsolt Nagy
A. L. wrote: >In Python interactive mode, is there some function acting like 'clear' >command in bash? Could somebody here give some advice? > > Under Linux/UNIX system (on x86 at least) you can use the CTRL+L combination to clear the screen. I do not now similar for Windows and MACs. Les

How to clear screen in Python interactive shell mode?

2005-09-15 Thread A. L.
In Python interactive mode, is there some function acting like 'clear' command in bash? Could somebody here give some advice? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list