! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Feature request: Support setting title by Escape sequences
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-terminal
Component:
General

Comments

Description Massimo Burcheri 2012-01-26 13:37:16 CET
Some Terminals support setting the title like
echo -ne "\033]0;$(whoami)\007"

I'm doing that by COMMAND_PROMPT which works in KDEs Konsole but gives weird characters on Terminal.
So far I disabled that part for Terminal since I did not find a proper way to check before printing such sequences.

Anyway it would be nice to support setting the title of a tab dynamically like that.
Comment 1 Massimo Burcheri 2012-05-03 13:04:19 CEST
I'm hardly trying to replace KDE konsole by XFCE Terminal. There are only a few issues missing for me, this is one:

Konsole-4 for example has a configurable "tab title format":
Program Name: %n
Current directory (short): %d
Current directory (long): %D
Window title set by shell: %w
Session number: %#
User name: %u

%w is the only I'm using here since I set the title dynamically by $PROMPT_COMMAND.
Comment 2 Massimo Burcheri 2012-05-04 09:44:00 CEST
Currently the title section of Terminal settings has "Initial title" and "Dynamically-set title" but only applies to the window title.
I'm rather pointing to tab titles which have no user setting at all at the moment.
Comment 3 Massimo Burcheri 2012-06-27 10:53:11 CEST
Sorry, this seems to work now. The tab title can be set dynamically by escape sequence. Maybe there was something wrong with the sequence or with the font set.

If there are no plans to implement the other variables such as %d, please close this issue.

Bug #8386

Reported by:
Massimo Burcheri
Reported on: 2012-01-26
Last modified on: 2012-12-24

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Attachments

Additional information