This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: rxvt comes up with lots of escape sequences visible
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: cygwin-xfree at cygwin dot com, chris dot green at isbd dot co dot uk
- Date: Sat, 3 Jan 2004 12:55:05 -0500 (EST)
- Subject: Re: rxvt comes up with lots of escape sequences visible
- References: <20040103122752.GC7287@areti.co.uk>
- Reply-to: cygwin-xfree at cygwin dot com
- Reply-to: cygwin-xfree at cygwin dot com
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.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton