After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 734968 - Allow for custom terminal titles
Allow for custom terminal titles
Status: RESOLVED DUPLICATE of bug 720693
Product: gnome-terminal
Classification: Core
Component: general
3.12.x
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
: 742315 747797 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2014-08-17 21:49 UTC by Lyude
Modified: 2015-04-13 20:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Lyude 2014-08-17 21:49:09 UTC
Hi! Upon upgrading to Gnome 3.12 on my system, I noticed that the gnome-terminal no longer has any way to change the title of each terminal window. I use this feature almost constantly because I'll usually have multiple terminals open at the same time, and it's almost a necessity to be able to have a custom title for each terminal. Without the ability to title terminals I'm apt to constantly typing in the wrong terminal window, especially since I'll usually be running multiple instances of the same program (multiple gdb sessions on different programs for instance).
My guess is that this feature was probably removed because a lot of terminal applications are apt to mess with the terminal title, which is understandable. It would be very useful to just be able to set custom titles though even if they don't allow terminal applications to change the title of the window, just for the sake of making multiple terminal windows manageable. I'm also willing to write up a patch for this myself if needed, I just need to know whether or not a patch for this would actually be accepted upstream.
Comment 1 Christian Persch 2014-08-19 19:12:03 UTC
You can alway set title by escape sequence, it's just the extra menu item that's been non-functional in 3.12 (due to bug 720693) and has now been removed.
Comment 2 gavin 2014-12-16 15:07:32 UTC
Customizing the title is something I really miss.  Let's say I want to set the title to be: "nodejs", would anyone be able to tell me how to do this in the new Terminal?
Comment 3 Egmont Koblinger 2015-01-04 13:11:01 UTC
*** Bug 742315 has been marked as a duplicate of this bug. ***
Comment 4 Egmont Koblinger 2015-01-04 13:13:44 UTC
(In reply to comment #2)
> Let's say I want to set the title to be: "nodejs"

Use this command:

echo -ne '\e]0;nodejs\a'
Comment 5 Alexey Gorshkov 2015-01-05 00:09:01 UTC
Let's make it clear: [renaming tabs] and [terminal titles] - are different things.

Users may need to rename terminal tabs to label purpose for which users created them or to somehow describe tabs in their words.

Terminal title is a tty ability to allow running programs change it or somehow additionally indicate it's status.

This way, those two things and purposes are different. This way, using escape sequences to rename a terminal - is not valid (not saying about usability by simple users).

My vision of how this should be made up is:
1. allow users to change terminal tabs labels.
2. if label not changed by user - show terminal title in what label
3. programs changing terminal titles should not be able to change custom tab titles set by user.
Comment 6 Egmont Koblinger 2015-01-05 00:22:03 UTC
(In reply to comment #5)
> Let's make it clear: [renaming tabs] and [terminal titles] - are different
> things.

I don't think it's set in stone.

Konsole, for example, clearly follows your preferred behavior. You can set the tab title to anything you wish, with certain placeholders being interpreted, e.g. %w is substituted with the terminal title as set via escape sequences. It's up to you to set your preferred title, which may or may not contain a %w.

Gnome-terminal (and Gnome in general) seems to go for simplifying things as much as possible; in this case it merges these two notions. You can configure the software you use to emit your desired title in its entirety, or not to alter it.

Note: I'm not arguing in favor of any of these two; I'm just stating that IMO both approaches are defendable.
Comment 7 bhs2007 2015-01-21 21:55:04 UTC
What's particularly annoying about this release is that the -t/--title=TITLE command-line option has stopped working as well (despite still being in the man page). I use a startup script to prepare an assortment of terminal tabs I use for different purposes and label them accordingly, and now they all simply say "Terminal". Who thought this needed to be broken?
Comment 8 gavin 2015-01-22 19:54:04 UTC
I use this function to edit the terminal tab's title in Gnome Shell:

function title()
{
  export PROMPT_COMMAND="echo -ne '\033]0;$1\a'"
}


example:

$ title nodejsstuff
Comment 9 Christian Persch 2015-01-22 20:41:09 UTC

*** This bug has been marked as a duplicate of bug 720693 ***
Comment 10 Egmont Koblinger 2015-04-13 20:16:04 UTC
*** Bug 747797 has been marked as a duplicate of this bug. ***