This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Cygwin 1.7.x upgrade: Xterm history messes up prompt
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: cygwin-xfree at cygwin dot com
- Date: Fri, 15 Jan 2010 19:56:42 +0000
- Subject: Re: Cygwin 1.7.x upgrade: Xterm history messes up prompt
- References: <27163806.post@talk.nabble.com> <27180596.post@talk.nabble.com>
- Reply-to: cygwin-xfree at cygwin dot com
2010/1/15 Derek Greer:
>
> I discovered that the problem is specific to my PS1 settings, but a bug
> nevertheless. ÂThe prompt I've used for years is:
>
> PS1='\[\033]0;\w\007\033[32m\][\h]: \[\033[33m ${PWD##*/}\033[0m\] > '
Only non-printing must be enclosed in \[ ... \] , but you've got
${PWD##*/} in there as well. As a consequence, readline thinks the
prompt is shorter than it actually is.
Andy
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/