From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dalaran.tastycake.net (dalaran.tastycake.net [IPv6:2001:ba8:0:1c0::1:1]) by sourceware.org (Postfix) with ESMTPS id BF4CB385841A for ; Thu, 25 Aug 2022 10:34:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BF4CB385841A Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dinwoodie.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinwoodie.org Received: from 77.116.2.81.in-addr.arpa ([81.2.116.77] helo=lucy.dinwoodie.org) by dalaran.tastycake.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRACE-0004nq-Bk for cygwin@cygwin.com; Thu, 25 Aug 2022 11:34:46 +0100 Received: from adam by lucy.dinwoodie.org with local (Exim 4.94.2) (envelope-from ) id 1oRACD-0006Nj-CM for cygwin@cygwin.com; Thu, 25 Aug 2022 11:34:45 +0100 Date: Thu, 25 Aug 2022 11:34:45 +0100 From: Adam Dinwoodie To: cygwin@cygwin.com Subject: Re: single key stroke `git add -p` bug Message-ID: <20220825103445.j67sjtwmea4sfkoy@lucy.dinwoodie.org> Reply-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, Aug 25, 2022 at 01:17:28AM +0200, trashyankes wrote: > Hello I update recently all cygwin packages and after that `git add > -p` stop working correctly. (previous update I did around 2 month > ago) I use mintty on Windows 10 x64, and have set `git config > --global interactive.singlekey true` when I run this command whole > terminal freeze and show message from git: ``` warning: reading > single keystrokes not supported on this platform; reading line instead > ``` mintty stop accepting any input even `Ctrl-C`. I tried to > revert mintty and git to older version but every one available have > same behavior. For now disabling `singlekey` make this git operation > work again but this is big lose in productivity. Confirmed. I'm not sure what's going wrong here: as I understand it, this function depends on the Term::ReadKey Perl module, provided by the Cygwin perl-TermReadKey package, but that package is correctly listed as both a buildtime and runtime dependency for the git package. I'll add to my queue to do some more debugging, but I'm not expecting to have time to do any serious investigation here for a while. Obviously if anyone else is able to identify the problem, I'm very happy to consider patches! Adam (Cygwin Git maintainer)