public inbox for cygwin-xfree@sourceware.org help / color / mirror / Atom feed
* rxvt comes up with lots of escape sequences visible @ 2004-01-03 12:27 Chris Green 2004-01-03 17:55 ` Igor Pechtchanski 0 siblings, 1 reply; 5+ messages in thread From: Chris Green @ 2004-01-03 12:27 UTC (permalink / raw) To: cygwin-xfree 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. -- Chris Green (chris@areti.co.uk) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rxvt comes up with lots of escape sequences visible 2004-01-03 12:27 rxvt comes up with lots of escape sequences visible Chris Green @ 2004-01-03 17:55 ` Igor Pechtchanski 2004-01-03 18:18 ` Chris Green 0 siblings, 1 reply; 5+ messages in thread From: Igor Pechtchanski @ 2004-01-03 17:55 UTC (permalink / raw) To: cygwin-xfree, chris.green 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rxvt comes up with lots of escape sequences visible 2004-01-03 17:55 ` Igor Pechtchanski @ 2004-01-03 18:18 ` Chris Green 2004-01-03 19:00 ` Christopher Faylor 0 siblings, 1 reply; 5+ messages in thread From: Chris Green @ 2004-01-03 18:18 UTC (permalink / raw) To: cygwin-xfree 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. -- Chris Green (chris@areti.co.uk) ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rxvt comes up with lots of escape sequences visible 2004-01-03 18:18 ` Chris Green @ 2004-01-03 19:00 ` Christopher Faylor 2004-01-03 19:19 ` Chris Green 0 siblings, 1 reply; 5+ messages in thread From: Christopher Faylor @ 2004-01-03 19:00 UTC (permalink / raw) To: cygwin-xfree 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: rxvt comes up with lots of escape sequences visible 2004-01-03 19:00 ` Christopher Faylor @ 2004-01-03 19:19 ` Chris Green 0 siblings, 0 replies; 5+ messages in thread From: Chris Green @ 2004-01-03 19:19 UTC (permalink / raw) To: cygwin-xfree 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) ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-01-03 19:19 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-01-03 12:27 rxvt comes up with lots of escape sequences visible Chris Green 2004-01-03 17:55 ` Igor Pechtchanski 2004-01-03 18:18 ` Chris Green 2004-01-03 19:00 ` Christopher Faylor 2004-01-03 19:19 ` Chris Green
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).