Set tab title when invoking terminator --new-tab
Bug #1520368 reported by
Sparhawk
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Terminator |
New
|
Wishlist
|
Unassigned |
Bug Description
I'd like to be able to set a tab title when I invoke terminator with a specific command. For example, I invoke mutt thus:
terminator --new-tab -x "TERM=xterm-
Terminator creates a new tab, but the tab title is `/bin/bash`. If I leave this tab open, I tend to lose track of it, especially since I invoke other commands in a similar way.
In an interactive shell, I can change the tab title by modifying PS1, but this is doesn't appear possible in a non-interactive session.
Terminator 0.98
Arch Linux
summary: |
- Set tab title when invoking terminator --new-tab (with command) + [Feature request] Set tab title when invoking terminator --new-tab |
Changed in terminator: | |
importance: | Undecided → Wishlist |
summary: |
- [Feature request] Set tab title when invoking terminator --new-tab + Set tab title when invoking terminator --new-tab |
To post a comment you must log in.
I just wanted to note a workaround to this. You can send an additional command to terminator to set the title.
print -Pn \"\e]0; <tab_title> \a\"
Hence, you can use the following (escaping the ").
terminator --new-tab -x "TERM=xterm- 256color; print -Pn \"\e]0;Mutt\a\"; export BROWSER=firefox; mutt -Z || mutt"
(For mutt specifically, you can just `set ts_enabled = yes` and also set ts_status_format, but this is useful for other commands that don't offer this functionality.)
It'd be neat to integrate this into terminator directly, but I'm happy for this to be closed if you prefer.