From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by sourceware.org (Postfix) with ESMTPS id 7741A385801E for ; Tue, 3 May 2022 14:02:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7741A385801E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=towo.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo.net Received: from [192.168.178.72] ([91.65.247.133]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MOiU5-1nTWKW46QR-00QDW3; Tue, 03 May 2022 16:02:08 +0200 Message-ID: Date: Tue, 3 May 2022 16:02:09 +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 Cc: cygwin@cygwin.com References: <55c9c2b8-ccab-db63-1cf2-6d989c581260@towo.net> <5919d14b-7626-46b8-ecdd-2fefecab029d@towo.net> From: Thomas Wolff In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:XBpcXHl3kKHJaVbW1b5Kg28g/BWibqh9LupXCAB0sAbavJzFLcv kXNEuGZ9qgU5o7bbX5MbH3Xr2iNuxxS6RKiv5IED6rOCifoDT6UaZJIg+xGTf9TeKb3YqUW aJTf82FP90rGWRSfN19qGWb48TVdysVdplAox4jvOSO6RMNuRiYhEVlCMqVxOOxJq3oeFvL ld63RV5ko9xJcJ2ZM2FFQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:hHWqHzOqZYk=:ZtQGduxSqf/5MQ/U71H4of WMx0c6qHnXPdEfP8HHfaC0c6EeOE5pex0YFPJgdNlkyRyFtAbJfJD4KJp0vE/JcNWshgDNPbM sx3Ggl8HwDHjN+qm9DK6gjDBobE1KU9CfJCekH61QjO5YgybNRnylrGBSvjw+3hTNVBwYADUG 1ugs0Uom6vPGFvUH2HJVlcjwDVfRyy3EPYItb8a+sZaxNBgzFKqhaq8UlQht9TUTwHfearnBy pSBquKJe/s9e4zs9eiLKAKxEkUYC/sRsM1OrRn5obu7LTZ8FLEGarSWG4mFsHrq1RBJkGi7L5 FpgKOA2K3zQ1QyOagefSQs7ZET2XIJaE3cHWSGy0HDSc/8IzGCojuYAyhIz0TUxtmZICal4UV RcgjQAS3ZP7ATY/MBdMlytpKTPEzwDLomVNrwAOrEdzLqVMEZRVymZjk9ZZEoGW5V4sggrejU jye/aLWc6CJneeopfx/6HhpeDT8OqvrCJAN0f179Y/iRmI0gqjV1Af2ALDf2RfSYyAf/Hn39n tMolV4iHWdbfnkoIVXFwgtRYRiZ35eydmOMu2hKj8tx5ksEateqG/3gGUdzeNm8pSSR3R7U6N DcshB5D11FfQbJhixyPDse0qTG9JoiwCzKq4i82UCldW2G7ssCFFeGfWYsK1lFurDk9kfDSWS 5dYE+XqS2XAflZdFpBtl6fF5T1cxXWMe9yl1kEkBqP3piCWJHchAfbF+X67d2ULwfSlY= 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_MSPIKE_H2, 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@cygwin.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: , X-List-Received-Date: Tue, 03 May 2022 14:02:15 -0000 Am 03.05.2022 um 14:26 schrieb Eric Adams: > On Tue, May 3, 2022 at 6:53 AM Thomas Wolff wrote: >> >> 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? > Thank you again. > > I'm running a cygwin system, with cygwin tcsh shell and cygwin vi. > > LAPTOP-2LPUB1MQ:~ 54> which vi > vi: aliased to vim > LAPTOP-2LPUB1MQ:~ 55> which vim > /usr/bin/vim > > I don't have any local vim customization files, my user minttyrc and > tcshrc files are attached. > > Thanks again, > Eric Adams. I do not reproduce such issue, there must be something weird configured in your environment.