X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B8CBC3858418 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo.net Message-ID: <5919d14b-7626-46b8-ecdd-2fefecab029d@towo.net> Date: Tue, 3 May 2022 13:53:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: mintty phantom key presses To: Eric Adams References: <55c9c2b8-ccab-db63-1cf2-6d989c581260 AT towo DOT net> From: Thomas Wolff In-Reply-To: X-Provags-ID: V03:K1:IB3k2yi0lEiNfVFf/Zr6CjaHtFb8ySuyQ/R3UxSPGVwvo6BN2Xf ct3N85uhTqMoauSw1mb2Xqd8yrRrLutl2okPlpexwswM9fExHt/4zQNaS+G7KlXEUy0+2Bo Yw5l33Hu51HZek9l7h1iqXJd6+fxvSyNR4KwDCYcsbmGEZiR+GireVqu1l0p7URmxFopczW 5RlZXZy0o9VmV+93S4odw== X-UI-Out-Filterresults: notjunk:1;V03:K0:V/+DmMyYdKU=:3iAh02wugd50XqWrC+eqcd WKxOBph0bJ9ehnFwJ764T5otYMFSJHRzpMG5krHgIUlRL+IXhbOQ5C2sos/rr3sdSgLSTwkgq yyKbrrmlox37balCJnV7t6oGeqJdYZu8m+oTunGjxiUvejooE5BN1QZ8kS0/ozhKYCSEJmh3d QuytBP8nCtCboPQMjX+EpFGU085OcaHFQHWyRYk8TvrEUsnCGit6jKg8mwzj5hfU3zvr/pHMa 88yYQeq7PSppwyeBUIrmPv2H0NlcunpcvJA0Aw3X4uqCi6blvUZdF0pGlnWs0N3XNKxp9Ipd/ KpvjIc7HLJI5VHxrYzhygv6DF9oPogTLwLPfY/NgYf0Z9TAsHnBgygELzs/H7TD2VOv/8NhO9 pGTqAKmEMrrCUgoObM+el/ilNS/+O+aevq24V4a2Bo9bIbDRB5LTcRdT90tQkC+IxB2htB5wl wvS5DFaMYFeJ4xJBmS9SXCmJm3srIM0xJbXSqlOF7YLIERLrjzspJePc7uFrB/sT7VTB5RtH9 4hvwngWWRri0TrAlZQ5uCI1rgDwhoZUtxz7hGa08056A/4vbLEaEATTRzStHv78TA3++RSRyp 71p15JezidK2qyCnahHenAZWZQRiaFZpL/u7r33m0WO/UkbYQlwH9V8sQMmt1u0dpFX13rk6m L/l84vGZ8s6N2eRQSfFuvG2Z5ClAGB+3/eIusJ18RNGAxdhOdDpYTLCHvQdGhohM41+E= X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cygwin AT cygwin DOT com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Am 03/05/2022 um 13:50 schrieb Eric Adams: > On Tue, May 3, 2022 at 12:20 AM Thomas Wolff wrote: >> Am 02.05.2022 um 23:54 schrieb Eric Adams: >>> Hi, >>> >>> I had previously reported this issue as "Possible phantom control-key state..." >>> >>> I observe that moving between cygwin mintty windows and Windows >>> windows causes unexpected behavior in the cygwin world. >>> >>> I took a new approach, using vi :) . In cygwin, I open a new file, >>> enter insert mode, hit Ctrl-V, and mouse out of the window. When I >>> mouse back into the cygwin edit window, my screen contains the display >>> string "^[[O" (note that the "^[" is vi-speak for "esc"). Examining >>> the resulting file with od shows: >>>> od -ah fdsa >>> 0000000 esc [ O nl >>> 5b1b 0a4f >>> >>> Here, the nl character is inserted by vi. >>> >>> This smells like an incomplete escape sequence. If it's left at the >>> command line, just waiting for the user to type something, there might >>> be trouble. >>> >>> Am I completely off? >>> Thanks, >>> Eric Adams. >> CSI O is the focus off notification (CSI I is the focus in notification). >> Someone has switched on focus reporting mode (CSI ? 1004 h) in your >> session (and isn't catching the notifications). >> Run your application in a fresh mintty, with no other software, to test. >> Thomas >> > Thomas, > Thank you for your insight. I'm afraid I don't know how to test this > without some extra software involved. > > In a fresh mintty, I tried "cat - > capturefile", focussed in and out > of the window a few times and hit Ctrl-D. The capturefile was empty. > > In a new mintty window, I try the vi experiment, and the escape > sequence is captured. > > Suggestions? > > Thank you, > Eric Adams. Which system do you run? (cygwin, msys) Is that cygwin vi? (What does `type vi` say?) What are your bash/vi configuration files? -- 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