X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-8.2 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_PGP_SIGNED,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-ID: <4FA70028.9040706@users.sourceforge.net>
Date: Mon, 07 May 2012 06:50:16 +0800
From: JonY <jon_y@users.sourceforge.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 1.7.14-2: bash not accepting "~" (tilde) from keyboard in Console (WIN7)
References: <4FA44D7B.8030103@hccnet.nl> <20120506125446.GA5036@pris.crapsteak.org> <jo6f5g$96i$1@dough.gmane.org>
In-Reply-To: <jo6f5g$96i$1@dough.gmane.org>
Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig3D618228081B3A888BEFEF1A"
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

--------------enig3D618228081B3A888BEFEF1A
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 5/7/2012 02:16, Andrew DeFaria wrote:
> On 05/06/2012 05:54 AM, David Sastre Medina wrote:
>> On Fri, May 04, 2012 at 11:43:23PM +0200, Chris Brouwer wrote:
>>> I have just installed Cygwin 1.17.14-2 using the setup.exe.
>>>
>>> I use Console (portable; from Portableapp.Com) as my entry to bash.
>>> I have tried this when calling cygwin.bat from Explorer, effectively
>>> starting cygwin from cmd.exe, and then the "~" works as expected.
>>>
>>> Does anyone have a solution for this ?
>> Yes. Just use mintty. It's the default and it works.
> I use mintty and Console. One good thing about Console it understands
> pty's or does something in the face of pty's that cause it to work in
> certain circumstances that mintty fails in. My example is cleartool. In
> mintty (or when mintty has ssh'ed to a remote system - sorry not on my
> work XP machine to test...) when I type cleartool I get no prompt. This
> is a long standing issue with cleartool on Windows using standard
> "console output" and that not working with ptys. Console, however,
> works. IIRC I think I saw it running a child cmd process. So maybe it
> runs things in there and grabs output to be displayed or read from.
>=20
> I wish mintty could be made to do that...

Console, like the normal Windows Command Prompt does not understand
PTYs, rather, it's the side effect of the PTY emulation you're seeing.

Sounds like your app is doing some line buffering because it thinks the
stdio is done via pipes when working with PTYs. There's nothing to be
done on the Cygwin side to fix this.


--------------enig3D618228081B3A888BEFEF1A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iEYEARECAAYFAk+nACwACgkQp56AKe10wHc2nwCeIGhSlV8dLp6eEm0gPAjXAMuK
13sAnjOu5rzCSH8dS1cQpSjo12AiILfR
=gnE7
-----END PGP SIGNATURE-----

--------------enig3D618228081B3A888BEFEF1A--
