From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29630 invoked by alias); 3 Jan 2004 19:00:40 -0000 Mailing-List: contact cygwin-xfree-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-xfree-owner@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com Reply-To: cygwin-xfree@cygwin.com Received: (qmail 29623 invoked from network); 3 Jan 2004 19:00:39 -0000 Received: from unknown (HELO redhat.com) (66.30.22.40) by sources.redhat.com with SMTP; 3 Jan 2004 19:00:39 -0000 Received: by redhat.com (Postfix, from userid 201) id 6019A40010E; Sat, 3 Jan 2004 14:00:39 -0500 (EST) Date: Sat, 03 Jan 2004 19:00:00 -0000 From: Christopher Faylor To: cygwin-xfree@cygwin.com Subject: Re: rxvt comes up with lots of escape sequences visible Message-ID: <20040103190038.GA3825@redhat.com> Reply-To: cygwin-xfree@cygwin.com Mail-Followup-To: cygwin-xfree@cygwin.com References: <20040103122752.GC7287@areti.co.uk> <20040103181837.GA8023@areti.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040103181837.GA8023@areti.co.uk> User-Agent: Mutt/1.4.1i X-SW-Source: 2004-01/txt/msg00053.txt.bz2 List-Id: On Sat, Jan 03, 2004 at 06:18:37PM +0000, Chris Green wrote: >On Sat, Jan 03, 2004 at 12:55:05PM -0500, Igor Pechtchanski wrote: >> On Sat, 3 Jan 2004, Chris Green wrote: >> >> > When I start an rxvt window on my cygwin X display (a local win2k rxvt >> > client that is) it has lots of visible escape sequences, e.g.:- >> > >> > \[\033]0;\w\007 >> > \033[32m\]\u@\h \[\033[33m\w\033[0m\] >> > >> > Presumably these should be interpreted somehow by rxvt and not >> > displayed. What am I doing wrong? >> > >> > The window works otherwise, it redisplays the above after every >> > command though. >> > >> > I've not done anything apart from installing rxvt (by using >> > startup.exe) and then running rxvt. >> >> It's the default *bash* prompt as displayed by ash. For some reason, rxvt >> doesn't pick up that your shell is bash and invokes /bin/sh, which doesn't >> understand the ansi escape sequences. Either invoke rxvt through "rxvt -e >> bash --login -i" or change the default prompt to contain the actual >> control characters instead of the \033 bash-isms. >> >OK, thanks very much, just what I needed to know. Getting rxvt to run >bash explicitly works perfectly. FWIW, you can also set the SHELL environment variable to /bin/bash and rxvt will bring up bash automatically. cgf