I know there are options to start a new terminal with a specified title, and that is is possible to change the title from a terminal using the menu: 'Terminal' -> Set Title.
However, I want to change it for a current terminal from command line. How can I change the title for an existing Gnome terminal from command line?
tputcommands to print such escape sequences, as mentioned in this exact duplicate. – l0b0 Mar 21 '12 at 08:27PROMPT_COMMANDwith a P. Your comment is a bit of a sweeping generalization; but certainly, if something else is rewriting the prompt (regularly or not), it will overwrite whatever you put there. – tripleee Sep 26 '19 at 03:40