(*** This bug was imported into bugs.kde.org ***) Package: konsole Version: KDE 2.2.2 Severity: wishlist Installed from: Debian testing/unstable Packages Compiler: Not Specified OS: Linux OS/Compiler notes: Not Specified it would be great if Konsole could automatically rename session names depending on the program name that currently runs in it. for instance if a user opens plain terminal it would rename session to username@machinename. i'm using Konsole to access different machines with different logins quite often and it is annoying to keep them syncronized manually. of course if implemented this feature should be optional preferably with global setting for all the new opeing sessions and also individually configurable for each one. sorry if this feature is already implemented but i did not find any mentioning of it in bugs.kde.org (Submitted via bugs.kde.org) (Called from KBugReport dialog. Fields Application KDE Version OS Compiler manually changed)
Konsole already has a control code sequence to rename the session - esc ] 3 0 ; BLAH bel. This poorly documented - I had to look at the source code to find it! If it is in a document somewhere, that document should be easier to find. This could be used appropriately in the shell to title the session after the current command, host or whatever- e.g. in the prompt, or in a pre/post cmd alias (tcsh). In csh/tcsh this alias will rename the session. alias sess 'echo "\033]30;\!*\007\c"' Greg
*** Bug has been marked as fixed ***.
I don't know whether this feature request was intended for the window title of a session only. It would be very helpful if this automatic renaming of sessions could be applied to session tabs of a single konsole application too. Of course, there should be a configuration option to switch between automatic and manual renaming of session tab titles. I cannot find such a feature in konsole version 1.4.2, KDE 3.3.2 Kind regards, Lorenz.
I think this bug is not closed since it was meant for SESSION title and not KONSOLE itself. From what i see this *feature* is still not available, although a lnog run has been done (from kde 2.2 to 3.4.1 and counting). Should i feed in another wish ? Stef
#4: Is it the tab title you are speaking of? If yes, it would indeed be handy if e.g. the tab title would be the same than the prompt of the shell it contains... Right now, the window title of konsole already has the $prompt+ " - Konsole"
Ok this does the trick, add this in your .bashrc: export PS1=$PS1"\[\e]30;\w\a\]" or if you prefer user@host notation: export PS1=$PS1"\[\e]30;\u@\H:\w\a\]"
Thanks a lot Yves, this does the trick i'm expecting (i've altered it a little to best fit my needs, but basically you've done all the work). 1000 mercis :-) Stéphane
I was about to post a wish as google didn't help and doc didn't mention it. PLEASE, DOCUMENT this feature! (at least in the tip of the day section)
Reopened bug - I agree with Olivier's comments on documentation. We should make this feature easier to find. There is also a set of related scripts on kde-apps.org which could also be mentioned.
Implemented via live tab titles feature in KDE 4. Separate formats for local and remote applications can be specified and Konsole will switch between them automatically. Documentation bug mentioned in this report has yet to be fixed. A separate report can be opened for that.