Version: 1.1.2 (using KDE KDE 3.0.2) Installed from: FreeBSD Ports OS: FreeBSD A current tip of day: "...that you can let Konsole set the current directory as the window title? For Bash, put 'export PS1=$PS1"\[\e]0;\H:\w\a\]"' in your ~/.bashrc ." If the window title sets the window title, how about having the icon title set the session button label? Future tip of the day?: "...that you can let Konsole set the current host as the session label? For Bash, put 'export PS1=$PS1"\[\e]1;\h\]"' in your ~/.bashrc . "
This getting anywhere?
What is this wish about? What you seem to describe is possible with 'export PS1=$PS1"\[\e]30;\h\a\]"' in .bashrc since KDE 3.0.
Thanks for the tip, that will help for some logins, but it's still not quite ideal. I'd like to be able to have the session buttons display the current hostname (and user, and sometimes working directory, though that would get a little big). I'd like the button's text to be based on the the actual current prompt without me having to change the .bashrc or export PS1 on each machine I login to. I log in to many machines, and on some of those I can't or shouldn't change the local environment. The title bar does this automatically. Am I missing something?
> I'd like the button's text to be based on the the actual current prompt without me > having to change the .bashrc or export PS1 on each machine I login to. You want to use different session types or the bookmark feature of Konsole 1.2. > The title bar does this automatically. Am I missing something? What title bar?
Subject: Re: Set session button label according to icon title Hello Stephan, I'm attaching a couple of images which should illustrate the problem. The title bar I'm referring to is at the very top of the window. Note that it kept track of my username and the hostname when I ssh into the other machine. That's what I was hoping I could do with the session buttons at the bottom. I typically end up with have 8-15 sesssions per konsole and it gets confusing. I just noticed the bookmark feature today, and it looks very handy. But even that won't cover the case during which I have to quickly log into a series of different machines. Aside from that, konsole is by far my favorite terminal app. Almost perfect. On Wed, Mar 12, 2003 at 08:11:25PM -0000, Stephan Binner wrote: > ------- You are receiving this mail because: ------- > You are a voter for the bug, or are watching someone who is. > > http://bugs.kde.org/show_bug.cgi?id=49544 > > ------- Additional Comments From binner@kde.org 2003-03-12 21:11 ------- > > I'd like the button's text to be based on the the actual current prompt without me > > having to change the .bashrc or export PS1 on each machine I login to. > > You want to use different session types or the bookmark feature of Konsole 1.2. > > > The title bar does this automatically. Am I missing something? > > What title bar? Thanks much, Adrian Created an attachment (id=1157) konsole2.png Created an attachment (id=1158) konsole1.png
the two pics are just empty?!?
Created attachment 1160 [details] Initial login
Created attachment 1161 [details] Login to second account
Sorry about that; corrected attachments are up.
> The title bar does this automatically. Am I missing something? This looks like you let it set with a "\e]0;$USER@$HOST\a" sequence already. I can't think of another way how this is otherwise possible. :-) Now, change this to "\e]30;$USER@$HOST\a" or add this one and you're done with it.
I understand the mechanism for changing the titlebar at the top. If you look at the bottom of those images, you will see that the text next to the icon on the session button did not change. That is, instead of 15 sessions that say "Shell", I'd like to have each button display the active $USER@$HOST even if I haven't tweaked the .bashrc on the destinations.
I understand you (now). Both can be set independently so you have to set both if you want to change both. That simple. :-)
Great, But how do you set the session title from within the shell? That you can change it by going through some menu somewhere is by my standards completely useless if its the only way.
Like written in the previous comments: echo -e "\e]30;foobar\a"
But is there a way to have the button text "follow" me through various logins, to systems which I have not previously accessed? That is the behaviour of the titlebar; why can't the buttons act the same way? If I have to take a manual action on these systems, I may as well hit Ctrl-Alt-S and set the button text that way.
Created attachment 1175 [details] Patch against KDE_3_1_BRANCH
> That is the behaviour of the titlebar; why can't the buttons act the same way? Change the source with proposed patch if you must have it working this way.
Thanks! I'll check it out tonight or this weekend.
Ahh Nice. Didnt notice the little 3, sorry.