From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2244 invoked by alias); 3 Jan 2004 19:19:23 -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 2237 invoked from network); 3 Jan 2004 19:19:22 -0000 Received: from unknown (HELO relay.mail.areti.net) (193.109.192.70) by sources.redhat.com with SMTP; 3 Jan 2004 19:19:22 -0000 Received: from halkidiki.areti.com (root@halkidiki.areti.com [193.109.192.71]) by relay.mail.areti.net (8.12.10/8.12.10/Areti-4.0.0R) with ESMTP id i03JJMeZ032640 for ; Sat, 3 Jan 2004 19:19:22 GMT Received: (from chris@localhost) by halkidiki.areti.com (8.11.7-20030925/8.11.7) id i03JJL608278 for cygwin-xfree@cygwin.com; Sat, 3 Jan 2004 19:19:21 GMT Date: Sat, 03 Jan 2004 19:19:00 -0000 From: Chris Green To: cygwin-xfree@cygwin.com Subject: Re: rxvt comes up with lots of escape sequences visible Message-ID: <20040103191921.GB8247@areti.co.uk> Reply-To: chris.green@isbd.co.uk Mail-Followup-To: cygwin-xfree@cygwin.com References: <20040103122752.GC7287@areti.co.uk> <20040103181837.GA8023@areti.co.uk> <20040103190038.GA3825@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040103190038.GA3825@redhat.com> User-Agent: Mutt/1.4i X-SW-Source: 2004-01/txt/msg00054.txt.bz2 List-Id: On Sat, Jan 03, 2004 at 02:00:38PM -0500, Christopher Faylor wrote: > 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. > Even neater, thanks. -- Chris Green (chris@areti.co.uk)