How can I change the Konsole title in Python? I found this code:
>>> import sys
>>> sys.stdout.write("\x1b]2;test\x07")
But it only works with Gnome terminal, not Konsole (on Kubuntu).
How can I change the Konsole title in Python? I found this code:
>>> import sys
>>> sys.stdout.write("\x1b]2;test\x07")
But it only works with Gnome terminal, not Konsole (on Kubuntu).
I would give
"\x1b]0;test\x07"
a try (note the0
instead of2
).There is an open bug about Konsole not correctly treating xterm escape sequences; maybe it won't work at all until it is fixed.