Setting the Title of the script window

Xnedra xnedra at aa-ha.com
Wed Apr 23 10:05:33 EDT 2003


Alex Martelli <aleax at aleax.it> wrote: 
> Unfortunately (in this context), "unix" does not have a single way
> to implement "text windows" -- there are many such beasts!
> 
> Fortunately, most such beasts emulate to some extent the oldest of
> them all, 'xterm'.  To set the window title under xterm, you must
> print to the terminal a string with some escape sequences --
> 
> def set_xterm_title(title):
>     print '\033]0;%s\007' % title
> 
> This will also work on a KDE "Konsole" and no doubt several other
> terminal emulators -- but, I think, not ALL of them.

Thanks for your answer....i'll give it a try :)

Katrin




More information about the Python-list mailing list