delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/05/06/18:50:52

X-Recipient: archive-cygwin AT delorie DOT 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 AT users DOT sourceforge DOT 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 AT cygwin DOT com
Subject: Re: 1.7.14-2: bash not accepting "~" (tilde) from keyboard in Console (WIN7)
References: <4FA44D7B DOT 8030103 AT hccnet DOT nl> <20120506125446 DOT GA5036 AT pris DOT crapsteak DOT org> <jo6f5g$96i$1 AT dough DOT gmane DOT org>
In-Reply-To: <jo6f5g$96i$1@dough.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

--------------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--

- Raw text -


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