delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/14/15:07:17

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=YH8LT5vhmJei7mYU
fGn1hG2GI1HXVqY2swPveFCKo2zqVEMrQGNiXV/iIXXfUnZ5Sri0sZFvHovFGMZ9
ViYMsuTbbfnwKWnM4yf7rvun4PKGJKTLWiss6AifYp+RSI+x5KE2Tb+Bg1FPoiBY
qBWEEOOWP06ADaMHUjjslay75WM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=rtpMpvBcAh3xERA8z5bv2d
5Y0ZI=; b=bIcXlANBol9x6so5anQ/9+aHEv7yDISWci2A8fyeOWyLjIKPvoTciu
migBNqAc8zK87jf08auEBbpyPGyXaIB0K1QNIvQ6GRb5t24QF11KcdSUqRtFMB2N
FALugVeleSOTaQ3RwCkvc7RaXmFvW/ngCJ/guKkR5yaz8Zoxr1nLU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=traced, 14122016, Braille, braille
X-HELO: mout.kundenserver.de
Subject: Re: mintty window gets tilde characters "pressed" in it
To: cygwin AT cygwin DOT com
References: <CAA5t8VpHom_Kyy6AnBd+1z=AsKPMWcECpyeXVW_ttT4vvvxaFg AT mail DOT gmail DOT com> <CAA5t8Vrwo8v1QNTkn94OgvsZv=2OMecbT4+L2z=wEco5LYtuaw AT mail DOT gmail DOT com>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <b14c1078-8f1b-0824-4541-702cca048aae@towo.net>
Date: Wed, 14 Dec 2016 21:06:51 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <CAA5t8Vrwo8v1QNTkn94OgvsZv=2OMecbT4+L2z=wEco5LYtuaw@mail.gmail.com>
X-UI-Out-Filterresults: notjunk:1;V01:K0:WnP7j28PuMg=:i3oTrRRzILMielyZe61S9s amsMWnWgoxQtY6Ewh/Go42vsGvUzpMTr0B+7R3Zt7fSaJS9TsAqZkxFFXez7FoB2/a1ontvBZ ni/adawAVXlSR/efXOgmKn6k6AUMQNE5NWXnDzuw9BV64MWnui32oGHr2cXMkp0iF0A9dvPZw SYX7tZ/FGnev7GhaNTqTYg4nX7PnSnTwWhwI7IHg83Hq+8ZMCVQu+HBf1o53GhNWNLD/3btds nmY5h/Y+q+QTLPl3vlCFl44aCPN3ZYahuBh73E8rXZG5qPCgPlxG8AJy6euJVmTF9qAvM757u hmXyvhhBnTPfLDxrFkmfaLo9KkIaKR7bpjORRzhqo4sgwPKw6KnIEBtwgve/y8ob9Q4qNvVg9 9T+zQNzqyl6qQl+LxBzP7eWPWfOydXNpW/HiS4qm+SwUWX6BmlcTuJdbtJkKEtwqtEJSMSsKI 62PDGK5Y/06pkDbrDjNE24ULKWcRhFaoHEK9Z7CAyY+mffRX6hfgDt84UK7vsznqvPz2tA5KB RcMCQjatyGOLXhyXTSf5KN1PfLcjjuMU9YkrqqOkdaCP+pMI0XkcB41ijbxTRAAetCM1QUoeF XXcOneJLZ7R2Vio4N2VR5FgJTFmPlpSrT9+wgS9WQs2dCPiAIlUL/lcpoGVOlrdgoaHrm3uik wfrp3KTRJTvAYeP0VcO0DsNsmURDmHrQ6cKZhRuQPTYPVroC9I3DrFmHUzhB8oPS8loWA5Z32 AyedTzz2tCQ5hakL
X-IsSubscribed: yes

Am 14.12.2016 um 18:48 schrieb David Karr:
> On Mon, Dec 12, 2016 at 10:18 AM, David Karr <davidmichaelkarr AT gmail DOT com> wrote:
>> Win7.  I believe my Cygwin version info is "2.5.2(0.297/5/3) 2016-06-23 14:29".
>>
>> I've been annoyed for a while with a symptom in my mintty windows.  I
>> will be typing along, or not, and suddenly a "~" character gets
>> injected into the stream. It often is the only character at the
>> prompt, so I can erase it and type my command, but it's really
>> annoying when it appears while I'm typing. I was just reminded of it
>> now when it injected the "~" right before I pressed enter on a
>> "mkdir", so I had to then remove the dir I just created and recreate
>> it.
>>
>> Is this something that Cygwin can control?
> I've determined what "instigates" this, but I find that it only mainly
> affects mintty and somewhat affects emacs. I've never seen a symptom
> in any other application.
>
> I use a tool called "Windows Caffeine" that is used to keep the
> display awake.  It sends a "f15 key up" event every 59 seconds.  That
> is what is producing the "~" character in the mintty window.  I've
> also seen a symptom from this in Emacs, but it's harder to produce.
> It's not as simple as just having a text buffer in focus. I haven't
> been able to reliably produce it in Emacs, but the mintty symptom is
> very reproducible.
I've checked with Caffeine and traced mintty. It receives F15 key down, 
the key up. Caffeine claims to send key up only but that's not true. 
Please report this as a bug to Caffeine.
X11 does not seem to handle F13...F24 at all because they don't appear 
on a typical PC keyboard (that's my assumption), so it doesn't occur in 
xterm. It generates a ~ only in terminal applications because a number 
of key escape sequences end with ~.

The key event from Caffeine can be distinguished from a real key event, 
because it does not include keyboard scancode information. So a 
workaround is possible in theory. I'm not sure though whether that's a 
good idea as there may be other applications that inject keys the same 
way, e.g. drivers of other input devices, like Braille.
Opinions and information are appreciated.

------
Thomas

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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