Sample Header Ad - 728x90

Fix terminal title after SSH remote logging to another machine

27 votes
11 answers
48498 views
right now I am using an one-line perl code to change titles of my terminal bars, print("\e]0;@ARGV\7"); but every time after I ssh to another remote machine, the title will be modified by the host (by which I'm not particularly bothered). But after I exit from the connection, the modified title remains. Is there a way to fix this? essentially I want a fixed title for my terminals when operating locally. I primarily use xfce terminal and terminator under either CentOS or Debian. Thanks. **EDIT** Another subtlety is that, rather having all terminals the same name, I would prefer to have the freedom to edit their titles on-the-fly but only forbid SSH session from modifying what I edited.
Asked by nye17 (373 rep)
Jun 15, 2012, 01:44 AM
Last activity: Sep 1, 2021, 01:33 PM