delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/05/03/08:27:49

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 71698385741C
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=DOF7LpCV+cgB7HTih/OubDe4+0u3U2VV6/CEq8v4SxM=;
b=mrET5i5Gmr92dRJrxMoknIG/R46LSab7D4TfU08C2K0y0fjsbz3pZ6NVhiPng/tRTc
hSeaLjoZhXyHrJ3iKqHXRvMtE5ds0aRa0piv2sA6US5RsmiugMskx4LqAAjXDor1TMxQ
d9CobgkCoRsHKRsjEHw7VaSzPFHTzVcn0wgBY4Ll18wL4B5tgZauv/BNEkbE9ZQ/ljQy
McMxIVYbBTE2MLzM/+hsZU5dwTaUQD/LW0KamhecvQ4hYbSJYCqOew5+3lsMyy5qgaxR
l5iBapUmEaSR1z3BGtEtcvObvBzG3XQruYnJ9fuY/1rJuIs8WX/KZNTpW/vALIkcftxh
y0ag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=DOF7LpCV+cgB7HTih/OubDe4+0u3U2VV6/CEq8v4SxM=;
b=ggBDXzHZL+IrM4hJjZbKEEHkjOaE5GiYph9+KTdNGdfZqAYtY2Lhz52GVGeJgWkuVc
+VvRxkr1Y7RvFB1RTFZQpGgcYhxEq5PXp2gJApmrGxHmC7B8FMWGe8Rf5qEv1v7HFsSM
gMXeJbetcj/GSqb7h+ZrpNidpWvCw2ISqwNCwiGBdeHwZ7aaC5dt5ZSFsPn1OQJeuVtS
PJxJU6P+Ezg64I/vFFrGDRQJgOX2mE3fK753kS4KaNCDNCFBtAp84KSF7BGcVM+GwaVQ
kyZpXy9hxl/Qa6aESiZ+FfNSpsvakOGI3bK/iE8b10utMr6yZa4h586Foo6KmK4DHN7m
N/DQ==
X-Gm-Message-State: AOAM532DACWixo8Z8gDecUIXEKlkLoIa+Ihfh8qGL1+mULVFQqi2bFo3
sogijGeL61sslSM+bg68XyW7AmVRhA7mBxmtPFU=
X-Google-Smtp-Source: ABdhPJzHN6cpEQive8HyIV4UVKAp7dAcXszkGqpprjne5+BvIIjdAmdPZ2gO9OQ/zopG6VCO79afmDDd9XI9+Ho+6Zs=
X-Received: by 2002:a67:1986:0:b0:32c:e785:c43a with SMTP id
128-20020a671986000000b0032ce785c43amr4981762vsz.14.1651580831636; Tue, 03
May 2022 05:27:11 -0700 (PDT)
MIME-Version: 1.0
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>
In-Reply-To: <5919d14b-7626-46b8-ecdd-2fefecab029d@towo.net>
From: Eric Adams <ericbadams AT gmail DOT com>
Date: Tue, 3 May 2022 07:26:44 -0500
Message-ID: <CAA=0bEM8RqNpZX4QCeoMyw_pGutWY1Hmv_=E330p1RPQZwenUQ@mail.gmail.com>
Subject: Re: mintty phantom key presses
To: Thomas Wolff <towo AT towo DOT net>
X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, 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-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
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

--000000000000c9da9505de1aa028
Content-Type: text/plain; charset="UTF-8"

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.

--000000000000c9da9505de1aa028
Content-Type: application/octet-stream; name="adams.minttyrc"
Content-Disposition: attachment; filename="adams.minttyrc"
Content-Transfer-Encoding: base64
Content-ID: <f_l2q4grx10>
X-Attachment-Id: f_l2q4grx10

Qm9sZEFzRm9udD1ubwpGb3JlZ3JvdW5kQ29sb3VyPTI1NSwyNTUsMjU1CkJhY2tncm91bmRDb2xv
dXI9MCwwLDAKVHJhbnNwYXJlbmN5PW9mZgpGb250SGVpZ2h0PTEwCk1hbmFnZUxFRHM9MAo=
--000000000000c9da9505de1aa028
Content-Type: application/octet-stream; name="adams.tcshrc"
Content-Disposition: attachment; filename="adams.tcshrc"
Content-Transfer-Encoding: base64
Content-ID: <f_l2q4grx61>
X-Attachment-Id: f_l2q4grx61

c2V0ZW52ICAgICBFQU04MiAgICAgMTkyLjE2OC4wLjgKYWxpYXMgICAgICBlY2hvd24gICAnY2hv
d24gLS1yZWZlcmVuY2U9L2hvbWUvZXJpY2IvYmluL09XTkVSU0hJUCcKYWxpYXMgICAgICBmeCAg
ICAgICAnbHMgLWx0R3IgLS10a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3RlbTMyIC9jeWdkcml2ZS9jL1dJTkRPV1MgL2N5
Z2RyaXZlL2MvV0lORE9XUy9TeXN0ZW0zMi9XYmVtICkKc2V0ICAgICAgICBwcm9tcHQgPSAnJW06
JWMzIFwhPiAnCnNldGVudiAgICAgUEFHRVIgICAgICAgbGVzcwojIHN0dHkgICAgICAgZXJhc2Ug
IF5cPwo=
--000000000000c9da9505de1aa028
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


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

--000000000000c9da9505de1aa028--

- Raw text -


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