[Tutor] "Clean screen" (where screen==stdout)
functionality needed, but o n Windows
kent_johnson at skillsoft.com
Thu Oct 28 23:13:25 CEST 2004
You might want to take a look at wconio:
At 01:19 PM 10/28/2004 -0400, Branimir Petrovic wrote:
>I am looking for a way to occasionally clear whatever executing Python
>script have sent to stdout so far.
>"DOS-box" cls equivalent is preferred, although if all other fails I
>might just print N empty lines to scroll printed stuff out of the way...
>Preferably I'd like to be able to make (or fake) minimally functional
>command line interface environment for Python scripts on Windows.
>Should I be looking for something specific in Win32all?
>While it would be great if my Python script would be able to figure out
>how big is the "box" (DOS box that is) it uses for its stdout (in order
>to know how much "real estate" it has for its output), just the ability
>to clear it all up at will and start printing from the upper left corner
>would do for now.
>Googling uncovered this http://flangy.com/dev/python/curses/ but being
>in "Alpha 3" release from the beginning of this year and without any
>Any ideas and/or pointers on how to create usable command line
>interface for Python scripts on Windows platform is very welcome.
>Tutor maillist - Tutor at python.org
More information about the Tutor