Setting win32 console title from Python

runes rune.strand at gmail.com
Thu Apr 28 10:11:44 EDT 2005


> Whenever you start an application from the command prompt the title
is
> modified by appending a dash and the name of the program you started.
When
> the application terminates the title is reset (to remove the name of
the
> running program). So any change to the title will only last until the
next
> time CMD.EXE prompts for input. The exception is that any title set
using
> the TITLE command becomes the reset title for that command prompt.

Thanks Duncan!  That sounds reasonable. What I do today is actually
using a .BAT file and read the name from a temp file created by a
python script. It works, but it's slow and the "batchfile-language"
gives me the creep ;-)

I'll try to find out why it does work in command.exe/WConio though.




More information about the Python-list mailing list