Set tab title when invoking mutt with command

Asked by Sparhawk

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-256color; export BROWSER=firefox; mutt -Z || mutt"

Terminator creates a new tab, but the 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.

I tried `-T <title>`, but this didn't work. 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

Question information

Language:
English Edit question
Status:
Solved
For:
Terminator Edit question
Assignee:
No assignee Edit question
Solved by:
Stephen Boddy
Solved:
Last query:
Last reply:
Revision history for this message
Best Stephen Boddy (stephen-j-boddy) said :
#1

Hmmm. The -T option is parsed at startup and sets the *window* title, not the tab or terminal title. If there is already a window the --new-tab option actually uses DBus to open a new tab. If there is no existing window (or DBus is off) then a new instance is started.

An alternative would be to expand and use the DBus interface to request a new tab, then set the terminal and/or tab title, and run a command.

I can't think of any way of doing this without code additions. You should file this as a feature request.

Revision history for this message
Sparhawk (sparhawkthesecond) said :
#2

Thanks Stephen Boddy, that solved my question.

Revision history for this message
Sparhawk (sparhawkthesecond) said :
#3