X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0 	tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <d258a5a011551.4bc9bd6e@shaw.ca>
References: <d258a5a011551.4bc9bd6e@shaw.ca>
Date: Sat, 17 Apr 2010 21:15:12 +0100
Received: by 10.239.155.211 with SMTP id j19mr290731hbc.45.1271535312283; Sat,  	17 Apr 2010 13:15:12 -0700 (PDT)
Message-ID: <k2u416096c61004171315v43d282abxb094ad335979f296@mail.gmail.com>
Subject: Re: bash loop using mintty
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

ERIC HO wrote:
> I reported a couple of times of the bash loop problem before. But it seem=
s the problem could bot be duplicated
> by others.
> I use "mintty -" to start up a terminal session.
> Today, I found out the problem. The loop is caused by set -o vi in my .ba=
shrc. After I removed that statement,
> =C2=A0I can hit =C2=A0shift F12 without bash looping (reported by task ma=
nager).
> If I start mintty without -, shift F12 just gives 4;2~ =C2=A0back.
> Once I enter set -o vi, shift F12 hang and bash starts looping
> With this information, I hope mintty users can duplicate this problem and=
 hopefully a fix could be available.

That would be a bash/readline problem, not a mintty problem. Shift+F12
in mintty sends the same keycode that xterm sends: '\e[24;2~'. I
suspect though that it is simply a case of vi mode interpreting that
keycode in some vi-ish way. A vi expert will have to pronounce on
that.

Andy

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

