Azaret / superputty

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

Honor xterm escape sequences for tab titles #149

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Possibly not as hard as it sounds, as PuTTY already does this. Superputty would 
just have to notice title changes in the PuTTY window and reflect them in the 
tab title.

Perhaps we could just have a per-session option to:
 - Let Superputty set the tab title (includes ability for user to right-click tab and rename)
 - Let PuTTY set the tab title

Original issue reported on code.google.com by wilk...@gmail.com on 26 Jun 2012 at 2:31

GoogleCodeExporter commented 9 years ago
I vote for this too!

Original comment by strugare...@gmail.com on 26 Jun 2012 at 8:18

GoogleCodeExporter commented 9 years ago
I've researched into winAPI to do this and capture change in putty title bar. 
Not sure if the project developers had a look at this but will update the 
minute I get it working.. just got other projects clawing at me atm.

Original comment by djtrem...@gmail.com on 26 Jun 2012 at 1:59

GoogleCodeExporter commented 9 years ago
is this a dupe of 165?

Original comment by btatey...@gmail.com on 16 Jul 2012 at 12:47

GoogleCodeExporter commented 9 years ago
Yes, it is a duplicate of 165. 

I agree this needs a user pref, but I don't see a need for both the "Static" 
and "Name" options suggested by djtrem...@gmail.com in #165. The Session Name 
is already independent of the Host Name, so "Static" tab titles can be set 
there. Right-click-and-rename allows further one-off title changes. 

Allowing the user to arbitrarily switch mid-session between this mode and the 
"Use PuTTY window title" mode would be beneficial in covering any edge cases.

Original comment by wilk...@gmail.com on 16 Jul 2012 at 4:43

GoogleCodeExporter commented 9 years ago
Session name isn't used within the initial tab when connected. So this isn't 
true that you can set the static name there. You may also like me want to set 
the FQDN in the session but only have the short name in the tab.. not possible 
atm. These are reasons why I suggested it. It's an option when you create it, 
don't HAVE to use it, hostname/session name could be a default.

I have a server whose session name is called 'anuke', the server connection 
hostname is 'anuke.hosts.domain.com', when I connect I get the hostname.
If you rename it, it's not permanent and reconnection I still see the long 
hostname.
But maybe I want to call it 'user@anuke' since I'm using a differnt username 
set in the connection settings, this can't be done if hostname is being used.

At least having Static setting, every connection uses a static name regardless 
of xterm or hostname unless renamed(non permanent).

And like putty, every time I switch directories it updates the tab so if I'm 
connected to many instances of the same server, I can clearly see without 
switching which is the one in /tmp/somedir etc.. Centos I believe constantly 
updates the putty title.

So static name as it's usefulness. "Name" title would be basically use the 
session name that is saved within the session file, if you rename your session 
then that's the new title. Static wouldn't change in this case.

Original comment by djtrem...@gmail.com on 16 Jul 2012 at 9:05

GoogleCodeExporter commented 9 years ago

Original comment by btatey...@gmail.com on 28 Jul 2012 at 11:55