! 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 !
Change window title based on ssh session data
Status:
RESOLVED: WORKSFORME
Severity:
enhancement
Product:
Xfce4-terminal
Component:
General

Comments

Description Ikonta 2009-07-24 06:40:02 CEST
Changing of terminal header depending on local data works fine.

I use terminal mostly for remote sessions (using console ssh-client).
But the terminal automatically changes the header only for local session.
I'll be very pleased, if it will automatically change header using ssh-client output (automatically setting in the header remote username and hostname).
Comment 1 Ikonta 2009-07-24 12:57:53 CEST
Excuse me, I've forgot to add that the window title should contain the standard header:
$USER@$HOST:$PATH

both for local and remote session.
Comment 2 Nick Schermer editbugs 2009-08-20 09:54:17 CEST
This is a shell thing, not something for the terminal. Please search google, there you'll find stuff like echo -n -e "\e]0;${USER}@${HOSTNAME}:${PATH}\a"
Comment 3 Ikonta 2009-08-24 09:46:51 CEST
Excuse me my persistance.
But.

Your solution is about setting the proper shell poiner (PS1).
The modification of PS1 works as it should.
The problem is in translation PS1 to the terminal header.
In the XFce terminal the translation of the PS1 changed by 'su' to the terminal header works fine (for each Tab).
The problem is in the translation of the PS1 changed by ssh-client to the terminal header. And I think, it's the problem in application (I've seen behaviour of several terminal applications in this case).
Comment 4 Nick Schermer editbugs 2009-12-08 14:17:51 CET
Well it work fine here so there is probably some going wrong with the shell config. If I login on a remote server using ssh, the terminal title shows the remotename@remoteuser:remotepath.
Also the terminal has no idea which child process is running, this is all handled by Gnome's VTE widget.

Bug #5607

Reported by:
Ikonta
Reported on: 2009-07-24
Last modified on: 2009-12-08

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Version:
0.2.12

Attachments

Additional information