| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <1224.10.0.0.8.1094490056.squirrel@10.0.0.8> |
| In-Reply-To: | <200409061612.i86GCTJ31324@vignette.austin.ibm.com> |
| References: | <200409061612 DOT i86GCTJ31324 AT vignette DOT austin DOT ibm DOT com> |
| Date: | Mon, 6 Sep 2004 18:00:56 +0100 (BST) |
| Subject: | Re: PS1 overwrites attempt to change title, settitle in bash or rxvt title |
| From: | "John Morrison" <john DOT r DOT morrison AT ntlworld DOT com> |
| To: | bnelson AT austin DOT ibm DOT com |
| Cc: | cygwin AT cygwin DOT com |
| User-Agent: | SquirrelMail/1.4.3a |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
Hi Brian, Patches gladly evaluated ;) J. > > This message is more for just getting into the archives to help any > newbies like me in the future. I was trying to set the title of my cygwin > and rxvt windows and was not having any luck. I followed the instructions > to echo something like: > > echo -e "\033]2;New Title\007" > > but it never seemed to work. It would only show the default cygwin title > of the current path (/cygdrive/c/...). I was trying everything I could > think of, then I changed PS1 to be something different and I could now set > the title. It turns out the default PS1 in cygwin/etc/profile sets PS1 to > include "\033]0;\w\007". That string is the terminal code to set the > title. So anytime I did something to set the title, the evaulation of PS1 > would overwrite it. So anyone having a problem setting the title should > look at their PS1 variable. > > (In case anyone doesn't know, PS1 is the shell environment variable which > controls what your command prompt looks like.) > > Also, I saw references to use the settitle function found in the default > bashrc (cygwin/etc/defaults/etc/skel). That didn't work because the > characters in the function are exactly: > > echo -n "^[]2;$@^G^[]1;$@^G"; > > Where the ^ are actual carat characters. That is, ^[ are the two > characters 'carat' and '[' as opposed to the single character ESC. The > same with ^G. > > -Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |