delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/28/16:26:41

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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: <265000-220031228212615926@M2W098.mail2web.com>
X-Priority: 3
Reply-To: lhall AT rfk DOT com
X-Originating-IP: 209.113.174.244
From: "lhall AT pop DOT ma DOT ultranet DOT com" <lhall AT pop DOT ma DOT ultranet DOT com>
To: qd421 AT yahoo DOT com, cygwin AT cygwin DOT com
Subject: RE: strange characters in Xterm (in X-window)
Date: Tue, 28 Jan 2003 16:26:15 -0500
MIME-Version: 1.0
X-OriginalArrivalTime: 28 Jan 2003 21:26:16.0548 (UTC) FILETIME=[E4212A40:01C2C713]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h0SLQeZ06289

Very interesting.  I don't use X windows under Cygwin so 
I would not have noticed this fact myself.  This is something
that makes sense to bring up on the cygwin-xfree list, assuming
it hasn't been discussed there already.  That list deals with 
issues that are X specific.

Larry

Original Message:
-----------------
From: Quan Ding qd421 AT yahoo DOT com
Date: Tue, 28 Jan 2003 12:43:47 -0800 (PST)
To: lhall AT rfk DOT com, cygwin AT cygwin DOT com
Subject: RE: strange characters in Xterm (in X-window)


If I remove the PS1 variable setting in /etc/profile,
the problem goes away. But my prompt becomes
"bash-2.05b$" instead of the current directory I'm in.
And I checked /etc/passwd file, I didn't see any
/bin/sh, they are all /bin/bash. So I didn't change
that file.
And then I found out that the problem is in the startx
script. If I change the first line from "#!bin/sh" to
"#!bin/bash", and leave the PS1 setting as it was in
/etc/profile, I got my informative prompt back in
Cygwin window while the annoying code in X-window's
terminals went away. Yeah~~~~~!
Thanks for your help!

-Quan
--- "lhall AT pop DOT ma DOT ultranet DOT com"
<lhall AT pop DOT ma DOT ultranet DOT com> wrote:
> You're running /bin/sh as your shell but have bash
> specific escape sequences in your prompt.  Change
> your
> prompt (/etc/profile, ~/.profile, etc) or change
> your
> shell (/etc/passwd) to /bin/bash.
> 
> Larry
> 
> Original Message:
> -----------------
> From: Quan Ding qd421 AT yahoo DOT com
> Date: Tue, 28 Jan 2003 09:42:16 -0800 (PST)
> To: cygwin AT cygwin DOT com
> Subject: strange characters in Xterm (in X-window)
> 
> 
> After I started x-windows. There are strange extra
> characters on the top of every window (login, 
> xterm)
> which look like the following:
> \[\033]0;\w\007
> \022[32m\]\u@\h \[\033[33m\w\033[0m\]
> 
> These two lines will show up again after each
> command
> I execute in the xterm window.
> 
> They look like terminal control code, but how and
> why
> are they displayed in my window? And how do I get
> rid
> of them?
> 
> BTW, although I'm using the English verison of
> WindowsXP, I set the region (in control panel) to
> China to be able to view and input Chinese.
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
> --
> Unsubscribe info:     
> http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 
>
--------------------------------------------------------------------
> mail2web - Check your email from the web at
> http://mail2web.com/ .
> 
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019