Summary: | wishlist: automatic session rename feature | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | ezhik1 |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
ezhik1
2002-02-13 13:23:13 UTC
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. |