Is there a command in Python to clear the screen? That is without writing
multiple blank lines.
Thanks.
Jim C
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 2005-01-02 at 11:31, jcollins wrote:
> Is there a command in Python to clear the screen? That is without writing
> multiple blank lines.
Without knowing what 'screen' you're talking about, it's hard to say. If
you mean clearing a terminal, you can call 'tput clear' or
'/usr/bin/clear' on
import os
# windows
os.system("cls")
# bash ( mac, linux )
os.system("clear")
That's all I can account for.
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 02 Jan 2005 14:23:07 +0800, Craig Ringer
<[EMAIL PROTECTED]> wrote:
> On Sun, 2005-01-02 at 11:31, jcollins wrote:
> > Is there a command in Python to clear the screen? That is without writing
> > multiple blank lines.
>
> Without knowing what 'screen' you're talking about, it's hard to s
Alan Gauld wrote:
But the bottom line is that there is no builtin command
because the mechanism is different on each platform.
I'd have said it was because the inpreter is line-oriented rather than
screen-oriented, but YMMV.
Cheers,
Nick.
--
Nick Coghlan | [EMAIL PROTECTED] | Brisbane, A
On Mon, 03 Jan 2005 02:15:23 +1000, Nick Coghlan
> Alan Gauld wrote:
> > But the bottom line is that there is no builtin command
> > because the mechanism is different on each platform.
>
> I'd have said it was because the inpreter is line-oriented rather than
> screen-oriented, but YMMV.
Yeah
Nick Coghlan wrote:
Alan Gauld wrote:
But the bottom line is that there is no builtin command because the
mechanism is different on each platform.
I'd have said it was because the inpreter is line-oriented rather than
screen-oriented, but YMMV.
Cheers,
Nick.
I would try doing a test against the