From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by sourceware.org (Postfix) with ESMTPS id DDC7D3858D1E for ; Sat, 24 Dec 2022 11:37:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DDC7D3858D1E Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from HP-Z230 (aj135041.dynamic.ppp.asahi-net.or.jp [220.150.135.41]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 2BOBbTt4015515 for ; Sat, 24 Dec 2022 20:37:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 2BOBbTt4015515 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1671881849; bh=2RrxSZ9Covt7hs/7A3HDd3qMZAdrV2nzKkekXyLvfXw=; h=Date:From:To:Subject:In-Reply-To:References:From; b=mvVUokqmme4jk9zUYGB8fQi9Tea3wYWFMNfESCETs0JP3gpvqeBEWwmUlhhZVjvtd WtLhMiFoWnE7FOmLxHojK64hV4cJcFDr8tJPoz7FFRigIphAcBCRUDaKHC3D6fo7aS OcpdjWQKn2391zq3+R2bGt0PTkQ43N8nz8lO9nZ2pY0fnLjSCFaq8NL345LOrbG7P9 12Ds6u6lUVH854K4brNX1uoamD8AJVwVURkDnHcbHY8yZtKcKDHUBX4W+0abrQsx8y V2z5ACjaqz+fyqZcNbZeMuet2O5qZB1+RksHUAu0yxAia2bjrP+++FqJd+Jnh1Xjyv h3lIr90pbls8Q== X-Nifty-SrcIP: [220.150.135.41] Date: Sat, 24 Dec 2022 20:37:29 +0900 From: Takashi Yano To: cygwin-developers@cygwin.com Subject: Re: read vs select on mouse events in console Message-Id: <20221224203729.9ed9a7280f1318bf9c4ce774@nifty.ne.jp> In-Reply-To: References: <20221223122408.e2412a32f5ab1bca115a8ae6@nifty.ne.jp> <17a52f3b-c8c4-b4dc-c852-93d5fcb22888@towo.net> <20221223191946.4b6dd028ec5309c228867b87@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP 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 Fri, 23 Dec 2022 13:03:06 +0100 Thomas Wolff wrote: > Am 23.12.2022 um 11:19 schrieb Takashi Yano: > > On Fri, 23 Dec 2022 10:08:20 +0100 > > Thomas Wolff wrote: > >> I see different behavior indeed; no further output of (0) and Windows > >> display its message to make a mouse selection in the title bar. > > Ah, that may be due to "Quick Edit Mode". It seems that the > > "Quick Edit Mode" is disabled in the DECSET 1000 range, however, > > it is enabled outside of the range. So, clicking mouse outside of > > the range triggers the "Quick Edit Mode" then program is suspended. > > > > If you uncheck the "Quick Edit Mode" setting, the problem will probably disappear. Please try. > Right, but how does Windows notice about mouse events processed by > cygwin, so it enters quick edit mode or not? > Still mysterious. Actually, mouse_aware() is not used after Win10 1703. Mouse event is translated to ESC sequence by Windows. ENABLE_VIRTUAL_TERMINAL_INPUT flag does that. Therefore, Windows knows whther the mouse event is processed or not. mouse_aware() works only if the system is before win10 1607 or legacy console mode is enabled. -- Takashi Yano