Summary: | Tabs auto-labelling not working with nested connections | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Davide Ferrari <vide80> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED INTENTIONAL | ||
Severity: | normal | CC: | robertknight |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Davide Ferrari
2008-01-17 15:32:53 UTC
This is an inherent limitation of the way tab labeling works I'm afraid. Konsole takes snapshots of the process status file for the terminal's current foreground process. This means that it can only look at processes that are local. Once you connect to a remote machine via ssh, Konsole has no idea what you are doing on the remote machine. If from the remote machine you connect to another (ie. a nested connection) Konsole will still only see the ssh process on the local machine. If you frequently nest ssh connections then a better option would be to change your remote tab title format (Settings -> Edit Current Profile -> Tabs) to just the window title set by the shell (Click Insert -> "Window title set by shell") instead. The default window title most shells give is usually something along the lines of "user@host:current directory$", so you will see the correct user and host on the tab title although the prompt string is usually quite long so you might need to shorten it. The only way around this that I see is for the shell process on the remote machine to pass back information about what is going on via some escape code magic. Confirming for now, although this mind end up being a WONTFIX given that there isn't really a good solution for the problem. The only question remaining is whether it would be better to switch to the window title set by the shell automatically when ssh is started (ie. Remote tab title format defaulting to '%w') rather than trying to get the username and host. Thanks for your answer. Yes, I do think as well that it would be better to default to '%w' in the remote tab title bar setting. Closing as WONTFIX for now since this is a limitation that we can't easily work around with current shells and most feedback that I have had is that people like the auto-tab name feature despite this problem. |