screen clear question

Craig Ringer craig at postnewspapers.com.au
Sun Jan 2 01:23:07 EST 2005


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 many UNIX systems; no idea about Windows.

--
Craig Ringer




More information about the Python-list mailing list