DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 50S8vee12295607 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 50S8vee12295607 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=s5dK6V6v X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA17B3857C63 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1738054658; bh=oNkRkKWu8YJH5wdynHmdrD9ghNvT8CMy9i1KoZvjAjo=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=s5dK6V6vt4diIYqKcZ8wyhtDixabOY2c+xCCcM5yEXxfOxsAgf9GiD44e3ARSVOn9 /ild7HhIlDdXO/shb1A3Fas/qbvYO7JxbEXNg25yGk8PiMP4aWwler7gcDKAuCjPSX felZZOeywTVSBp8QyRrA7ELVsboemXoqJs+ySqps= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5543F385841D Date: Tue, 28 Jan 2025 09:56:38 +0100 To: cygwin AT cygwin DOT com Subject: Re: [mintty] Problem of the control key on focus change Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: <20250127201721 DOT 2f31acf76d494f5e13652537 AT nifty DOT ne DOT jp> <48d156ec-a609-498a-9e97-2f49f1719bc4 AT towo DOT net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <48d156ec-a609-498a-9e97-2f49f1719bc4@towo.net> X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Jan 28 00:50, Thomas Wolff via Cygwin wrote: > > Am 27.01.2025 um 12:17 schrieb Takashi Yano via Cygwin: > > Hi Thomas, > > > > A few days ago, Corinna asked me to check a problem of TTY. > > The problem is as follows. > > > > Reproduce steps: > > (1) Open mintty. > > (2) Open another mintty. > > (3) Place the second mintty window over the first one. > > (4) Hold ctrl key down. > > (5) Press 'd' key while holding ctrl key. The second mintty > > window will be closed. Keep ctrl key still hold down. > > (6) Now the first mintty window is focused. Then press 'd' key > > while holding ctrl key down. > > (7) The first mintty window will not logout but displays 'd'. > > > > I checked the pty and found the pty in the first mintty > > receives just 'd' but not Ctrl-D from mintty. In other words, > > fhandler_pty_master::write() is called with 'd'. So I suspect it > > might be a problem of mintty. Therefore, I tried old version > > of mintty. The results are: > > > > 3.7.7-1: NG > > 3.7.4-1: NG > > 2.9.6-0: OK > > > > I guess this bug(?) was introduced between 2.x.x and 3.7.x. > > > > Any idea? > > > > If you need more information from pty side, please let me know. > > > Hi Takashi, > sorry this was attributed to pty, it is an issue of mintty I was aware > of which appeared in 3.7.2. > More precisely, it slipped in with > be73970877a99548aeeab60a2572ffb04b695066 "revise AltGr handling to > support flexible right-Alt+left-Ctrl combinations (#1266)", as a > trade-off for what I meant to be a final fix for control modifier > handling. I guess I hadn't considered it serious enough to reopen the > issue for another workaround. To be reconsidered... I just had a look into that commit and saw the description of a hidden option OldAltGrDetection right at the start. Looks like OldAltGrDetection=2 is a temporary workaround for the problem. What's the drawback of using it? Thanks, Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple