dcdgupta / superputty

Automatically exported from code.google.com/p/superputty
MIT License
0 stars 0 forks source link

Cannot rename the tab using xterm escape sequence #288

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Annoying issue in a work environment with 100's or 1000's of servers.

Let's say I use putty to ssh to host A.
Within that session, I ssh to host B.
Within that session, I ssh to host C
et cetera

It is very handy to add an escape sequence to one's .profile or .bashrc to 
whatever, that sets the name of the Putty session to the name of the server you 
are connected to.

If I set PS1="\033]0;`hostname`\007" in my .profile,
as I ssh from A to B to C, the window title & the icon title
get renamed automatically.

Then as I "pop the stack", exiting out of the deepest ssh session, the window 
title & icon title revert to the correct name.

This works great with putty

This does not work at all with SuperPutty

I am using 1.3.0.11 SuperPutty on Windows Server 2007

Original issue reported on code.google.com by ethi...@gmail.com on 5 Feb 2013 at 8:21

GoogleCodeExporter commented 9 years ago
I tried it in 1.4.0.4 and it seems to work.

I've tried setting PS1 as specified as well as tried doing things with "echo 
-ne" as described here.
http://www.networkinghowtos.com/howto/how-to-set-the-putty-window-title-via-scri
pt/

For this to work, you will need to configure SuperPuTTY to have tabs be in 
"Dynamic" update mode. By default it's in Static which just displays the 
session name.

Tools, Options, GUI Tab, Tabs and Docking, Tab Text.  

Original comment by btatey...@gmail.com on 24 May 2013 at 10:47

Attachments: