I found a method to change the title of the terminal from Python. However it doesn't seem to work for me in Kubuntu 12.10 and Konsole as terminal. https://bbs.archlinux.org/viewtopic.php?id=85567
The code that supposed to work is:
To quickly try out yourself:Code:import sys sys.stdout.write("\x1b]2;test\x07")
Typeto enter the python shell and enter the two lines I quoted above.Code:python
This does not change the title in Konsole however. Neither do those lines give any errors. Is their another way to set the terminal title from within Python? Or is the problem just with KDE's Konsole?