delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/05/03/10:02:32

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 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
Message-ID: <a40b14a0-8395-e4f7-f049-e392b3513338@towo.net>
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 <ericbadams AT gmail DOT com>
References: <CAA=0bEORh1+OiRZOWz5HVYCfDUM8kjF54EXeWvtnYsCij6vfBA AT mail DOT gmail DOT com>
<55c9c2b8-ccab-db63-1cf2-6d989c581260 AT towo DOT net>
<CAA=0bEOLne4Sfm5i_8=_Ugu_CyTeLjoV_4kQLGSkeDxnNcF_FA AT mail DOT gmail DOT com>
<5919d14b-7626-46b8-ecdd-2fefecab029d AT towo DOT net>
<CAA=0bEM8RqNpZX4QCeoMyw_pGutWY1Hmv_=E330p1RPQZwenUQ AT mail DOT gmail DOT com>
From: Thomas Wolff <towo AT towo DOT net>
In-Reply-To: <CAA=0bEM8RqNpZX4QCeoMyw_pGutWY1Hmv_=E330p1RPQZwenUQ@mail.gmail.com>
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

Am 03.05.2022 um 14:26 schrieb Eric Adams:
> On Tue, May 3, 2022 at 6:53 AM Thomas Wolff <towo AT towo DOT net> wrote:
>>
>> Am 03/05/2022 um 13:50 schrieb Eric Adams:
>>> On Tue, May 3, 2022 at 12:20 AM Thomas Wolff <towo AT towo DOT net> 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.

-- 
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019