Clearing a DOS terminal in a script
Stephen_B
stephen at theboulets.net
Thu Dec 13 12:38:26 EST 2007
On Dec 13, 11:21 am, "Chris Mellon" <arka... at gmail.com> wrote:
> It opens "clear" with it's own virtual terminal and clears that
> instead.
Even when I launch the script from a cmd shell with "python
myscript.py"?
> There's an ANSI control code you can use to reset the screen, try printing that.
I googled "<Esc>[2J" as an ascii sequence that it is supposed to clear
the screen. How do I send that?
Stephen
More information about the Python-list
mailing list