delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/21/12:25:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Thu, 21 Jul 2005 12:25:16 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Lars Munch <lars AT segv DOT dk>
cc: Eric Blake <ebb9 AT byu DOT net>, cygwin AT cygwin DOT com
Subject: Re: buggy tab-expansion
In-Reply-To: <20050721130203.GA25319@tuxedo.skovlyporten.dk>
Message-ID: <Pine.GSO.4.61.0507211223390.22383@slinky.cs.nyu.edu>
References: <9bbd279405072102001b83b4e5 AT mail DOT gmail DOT com> <42DF90C8 DOT 6080008 AT byu DOT net> <20050721130203 DOT GA25319 AT tuxedo DOT skovlyporten DOT dk>
MIME-Version: 1.0

On Thu, 21 Jul 2005, Lars Munch wrote:

> On Thu, Jul 21, 2005 at 06:10:48AM -0600, Eric Blake wrote:
> > According to Alex Goldman on 7/21/2005 3:00 AM:
> > > Here's an example (I tried this in the original DOS/Cygwin terminal
> > > and in Rxvt) :
> > >
> > > 1. type "grep" in the command line, but don't hit Enter
> > > 2. hit Tab quickly several times (two is often enough)
> > >
> > > The line now becomes "grepp", even though there are no "grepp*" in PATH.
> > >
> > > (Hitting Enter invokes "grep" - single 'p')
> >
> > This sounds related to the buggy prompt display code.  There is a known
> > issue in readline where some (but not all) prompts cause display problems,
> > because the display engine isn't properly accounting for invisible
> > characters in the string, and I am awaiting a patch from the upstream
> > maintainer.  In the meantime, I was unable to reproduce the symptoms;
> > could you please let me know what your $PS1 variable is?
>
> I have also been having this problem for the last month or so. My PS1 is
> a long nasty one:
>
> \[\e]2;\u@\h \w\a\e[32m\]\u\[\e[34;1m\]@\[\e[0m\e[32m\]\h\[\e[34;1m\]:\[\e[0m\e[33m\]\W\[\e[34;1m\]>\[\e[0m\]

A common workaround for prompt problems in bash is to add \[\] to the end
of the $PS1 (which is what Eric's patch attempts to do, given the current
lack of a proper fix from the upstream maintainers).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019