xterm titles and bash
Hi, all -- I'm running KDE 3.2 on my 9.0 laptop and I have bash as my shell. Instead of being polite enough to leave my xterm titles alone, it appears that bash is resetting them based on my prompt-type data. I didn't suffer from this feature under 8.1, and don't know where to look to rid myself of it. I have looked in the KDE control panel, YAST, and every rc and setup file under /etc/ that I can find and don't see anything that looks like it would set this behavior. How can I get back to nice, static titles that are what I set them to be? TIA & HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The Saturday 2004-02-21 at 00:48 -0500, David T-G wrote:
I'm running KDE 3.2 on my 9.0 laptop and I have bash as my shell. Instead of being polite enough to leave my xterm titles alone, it appears that bash is resetting them based on my prompt-type data.
No, I think it is an xterm feature. -- Cheers, Carlos Robinson
Carlos, et al -- ...and then Carlos E. R. said... % % The Saturday 2004-02-21 at 00:48 -0500, David T-G wrote: % % > I'm running KDE 3.2 on my 9.0 laptop and I have bash as my shell. % > Instead of being polite enough to leave my xterm titles alone, it % > appears that bash is resetting them based on my prompt-type data. % % No, I think it is an xterm feature. I suppose it could be, though I've never seen it specific to an xterm before (though I *do* know about escape sequences setting the window titlebar and icon label). And it didn't do it in 8.1 (or earlier or any other UNIX or ...) either. Still, however, I do not know how to get the thing to stop! Any hints? % % -- % Cheers, % Carlos Robinson TIA again & HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The Tuesday 2004-02-24 at 21:07 -0500, David T-G wrote:
% No, I think it is an xterm feature.
I suppose it could be, though I've never seen it specific to an xterm before (though I *do* know about escape sequences setting the window titlebar and icon label). And it didn't do it in 8.1 (or earlier or any other UNIX or ...) either.
man xterm: | -e program [ arguments ... ] | This option specifies the program (and its command | line arguments) to be run in the xterm window. It | also sets the window title and icon name to be the | basename of the program being executed if neither | -T nor -n are given on the command line. This | must be the last option on the command line. So it is possible. That's not how it is being done in your case - and mine, I see it here (SuSE 8.2) - but it confirms the possibility.
Still, however, I do not know how to get the thing to stop! Any hints?
No... I would have to study its manuals to find out, and it is big and confusing. O:-) -- Cheers, Carlos Robinson
On Tuesday 24 February 2004 10:37 pm, Carlos E. R. wrote:
The Tuesday 2004-02-24 at 21:07 -0500, David T-G wrote:
% No, I think it is an xterm feature.
I suppose it could be, though I've never seen it specific to an xterm before (though I *do* know about escape sequences setting the window titlebar and icon label). And it didn't do it in 8.1 (or earlier or any other UNIX or ...) either.
man xterm: | -e program [ arguments ... ] | This option specifies the program (and its command | line arguments) to be run in the xterm window. It | also sets the window title and icon name to be the | basename of the program being executed if neither | -T nor -n are given on the command line. This | must be the last option on the command line.
So it is possible. That's not how it is being done in your case - and mine, I see it here (SuSE 8.2) - but it confirms the possibility.
Still, however, I do not know how to get the thing to stop! Any hints?
No... I would have to study its manuals to find out, and it is big and confusing. O:-)
-- Cheers, Carlos Robinson In /etc/bash.bashrc roundabout line 130 the prompt is set. You can manually set it in ~/.bashrc or comment out the line PS1="${_t}${_u}:\w${_p} " as it is commented out in the other two cases, or any combination thereof.
mg -- Our lives begin to end the day we become silent about the things that matter. -Martin Luther King-
Mike, et al -- ...and then Mike Grello said... % ... % In /etc/bash.bashrc roundabout line 130 the prompt is set. Aha; thanks. % You can manually set it in ~/.bashrc or comment out the line % PS1="${_t}${_u}:\w${_p} " % as it is commented out in the other two cases, or any combination thereof. Well, I see that, and I will definitely try changing that and starting new xterms as well as restarting KDE, *BUT* that doesn't answer the question of why it updates my titlebars, or at least not that I've found. Interestingly enough, I do not see any value for $_t or ${_t} in my shell, but $PS1 includes lovely escape sequences :-( ARRRGH! % % mg % % -- % Our lives begin to end the day we become silent about the things that matter. % -Martin Luther King- Thanks again & HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
Hi again -- ...and then David T-G said... % % ...and then Mike Grello said... % % % ... % % In /etc/bash.bashrc roundabout line 130 the prompt is set. % % Aha; thanks. % ... % Interestingly enough, I do not see any value for $_t or ${_t} in my % shell, but $PS1 includes lovely escape sequences :-( Putting these two together was enough. I found where _t was set a few different ways based on term type a bit above that, and that was where the escape sequences came in. Rather than muck about with the /etc files, to lose them in an upgrade, I tried resetting PS1 in my .bashrc, and it was indeed soon enough to avoid mucking up my titlebar. Yay! Shame on SuSE for changing that, though :-( Thanks again to all & HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
* David T-G
... % Interestingly enough, I do not see any value for $_t or ${_t} in my % shell, but $PS1 includes lovely escape sequences :-(
Putting these two together was enough. I found where _t was set a few different ways based on term type a bit above that, and that was where the escape sequences came in.
Rather than muck about with the /etc files, to lose them in an upgrade, I tried resetting PS1 in my .bashrc, and it was indeed soon enough to avoid mucking up my titlebar. Yay!
You may also create /etc/bash.bashrc.local to make changes w/o changing the default configuration files. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
Patrick, et al --
...and then Patrick Shanahan said...
%
% * David T-G
Carlos, et al -- ...and then Carlos E. R. said... % % The Tuesday 2004-02-24 at 21:07 -0500, David T-G wrote: % % > % No, I think it is an xterm feature. % > % > I suppose it could be, though I've never seen it specific to an xterm % > before (though I *do* know about escape sequences setting the window % > titlebar and icon label). And it didn't do it in 8.1 (or earlier or % > any other UNIX or ...) either. % % man xterm: % % | -e program [ arguments ... ] ... % | also sets the window title and icon name to be the % | basename of the program being executed if neither % | -T nor -n are given on the command line. This % | must be the last option on the command line. Yes, I know that. % % So it is possible. That's not how it is being done in your case - and % mine, I see it here (SuSE 8.2) - but it confirms the possibility. Ah. OK; perhaps I wasn't clear. Not only is the title set to my prompt (not to 'bash') but it changes when I change directories. There is some bash configuration which sends the escape sequences to the xterm, and I don't know where it is! % % > Still, however, I do not know how to get the thing to stop! Any hints? % % No... I would have to study its manuals to find out, and it is big and % confusing. O:-) Gee, thanks ;-) % % -- % Cheers, % Carlos Robinson Thanks anyway & HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
On Fri, Feb 27, 2004 at 10:53:06PM -0500, David T-G wrote: : Ah. OK; perhaps I wasn't clear. Not only is the title set to my prompt : (not to 'bash') but it changes when I change directories. There is some : bash configuration which sends the escape sequences to the xterm, and I : don't know where it is! Check an see if the $PROMPT_COMMAND environment variable is set. If so, then unset it. Also, check the value of $PS1. If you see anything like ]0; or ]2; ended by \a, \007 or ^G, then it's being set there. --Jerry -- "So remember kids, eat meat. And lots of it. It's nature's perfect food." -- Lance Blastoff
participants (5)
-
Carlos E. R.
-
David T-G
-
Jerry A!
-
Mike Grello
-
Patrick Shanahan