How can I change the name of Konsole in Python? I found this code:
>>> import sys >>> sys.stdout.write("\x1b]2;test\x07")
But it only works with the Gnome terminal, not Konsole (on Kubuntu).
I would ask "\x1b]0;test\x07" to try (note 0 instead of 2 ).
"\x1b]0;test\x07"
0
2
There is an open error that Konsole does not properly handle xterm escape sequences; it may not work until it is fixed.
dcop "$KONSOLE_DCOP_SESSION" renameSession "New title here"
That should work. You can also run the command without the renameSession part to get a list of other parameters that you can change.
Source: https://habr.com/ru/post/1416435/More articles:How to replace meta tag, keywords and description with uploaded ajax html document? - jqueryHow to load a static HTML site in Google App Engine? - google-app-enginePHP: classes using each other - phpApp Engine, if elif still runs on dev, but not in production - pythonHBase Thrift: how to connect to a remote HBase master / cluster? - hbaseUnique certificate authentication and REST service - restHTML5 web workers work if user quits or closes browser? - htmlHow can I track memory allocation? - cApp Engine Log in to both http and https using the Users service. - pythonWhy can't we have this () and super () together in Java? - javaAll Articles