J
jcollins
Is there a command in Python to clear the screen? That is without writing
multiple blank lines.
Thanks.
Jim C
multiple blank lines.
Thanks.
Jim C
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 many UNIX systems; no idea about Windows.
Alan said:But the bottom line is that there is no builtin command
because the mechanism is different on each platform.
But the bottom line is that there is no builtin command
because the mechanism is different on each platform.
I would try doing a test against the resident OS the program is runningNick said:I'd have said it was because the inpreter is line-oriented rather than
screen-oriented, but YMMV.
Cheers,
Nick.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.