[python-win32] Another question about PythonWin

Tony Cappellini tony@tcapp.com
Mon, 11 Nov 2002 09:23:58 -0800


Thanks Jens.

So the question remains- Should PythonWin intercept this console cls, and 
do a GUI style clear screen for the programer, or should the programmer do 
it manually ?

At 11:18 AM 11/11/2002 -0500, Jorgensen, Jens wrote:
>This is because cls is a console app and pythonwin is a win32 gui app. So, 
>when cls runs a console is allocated (the window you see being created) 
>and then it does its work. python.exe is a console app and thus already 
>has a console which is what gets used by cls when it runs. This is a 
>Windoze thing, not like unix where every program has stdin, stdout, and 
>stderr which may or may not have a "console" on the other end of them.
>
>         -----Original Message-----
>         From: Tony Cappellini [mailto:tony@tcapp.com]
>         Sent: Mon 11/11/2002 1:18 AM
>         To: python-win32@python.org
>         Cc:
>         Subject: [python-win32] Another question about PythonWin
>
>
>
>
>         When I call os.system('cls') in Pythwonwin, a window opens then 
> closes, but
>         my interactive screen never gets cleared :(
>
>         If I execute the same command in IDLE, IPython, or python.exe 
> ,the screen
>         is cleared .
>
>         Why is PythonWin different in this regard ?
>
>         thanks
>
>         Tony
>
>
>         _______________________________________________
>         Python-win32 mailing list
>         Python-win32@python.org
>         http://mail.python.org/mailman/listinfo/python-win32
>