delorie.com/archives/browse.cgi | search |
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=CiZay/B3+lcvhcOJ | |
Yn1WA7Te5VHUCYMRKtzZn0sZw7qL+vuyV4OY2u57aNjuoBY8nLqbq0zRVAsOVV30 | |
UYJbVNGZcP8qR8aGmWlxWOrM3IAaZNhw2fmRryyCdWHuqOkESFEwk5cCJL2Z2AA3 | |
omw/yctvcXyss64UNblglDbXmvA= | |
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=65SHELkXxYKId36LwhlQO5 | |
JCh+A=; b=amE3Cdfkdl3EhMr4vvlz7d2rxCUbKx74dhus/5e6T8WCmnU/71SAMs | |
aKwmwxwvjlqiN10mnNakkjpFNJxhhaOoLmHnHy+976/QJF5ta+hksr7H/MmUKK7c | |
+OXIorTZKVzBHxvuFg2nz/tMydpxkg91/28Ga4e9NbzMV+VAhCgLk= | |
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-Spam-SWARE-Status: | No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=keyboard, H*MI:sk:a10b014, observations, H*i:sk:a10b014 |
X-HELO: | mout.kundenserver.de |
Subject: | Re: cygwin 3.1 pseudo console in PTY and break/ctrl-c handling |
To: | cygwin AT cygwin DOT com |
References: | <937489593 DOT 4978154 DOT 1582060605719 DOT ref AT mail DOT yahoo DOT com> <937489593 DOT 4978154 DOT 1582060605719 AT mail DOT yahoo DOT com> <b579ee20-ff91-b633-594f-d7dee81936f8 AT towo DOT net> <1610701589 DOT 5557144 DOT 1582142570779 AT mail DOT yahoo DOT com> <a10b0144-34b0-5ea7-31f7-acd5c94f275a AT SystematicSw DOT ab DOT ca> |
From: | Thomas Wolff <towo AT towo DOT net> |
X-Tagtoolbar-Keys: | D20200220101056298 |
Message-ID: | <7093c8eb-cb0f-eeee-2864-90923a206e98@towo.net> |
Date: | Thu, 20 Feb 2020 10:10:56 +0100 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <a10b0144-34b0-5ea7-31f7-acd5c94f275a@SystematicSw.ab.ca> |
X-IsSubscribed: | yes |
On 19.02.2020 21:21, Brian Inglis wrote: > On 2020-02-19 13:02, Kevin Schnitzius via cygwin wrote: >> On Tuesday, February 18, 2020, 05:54:23 PM EST, Thomas Wolff wrote: >>>> With 3.1.2-1: >>>> mintty -o "CA+F12:break"        =====>  ctrl-alt-F12 causes a break and kills notepad >>>> mintty -o "c:break"          =====>  ctrl-shift-c causes a break and kills notepad >>>> mintty -o "C+c:break"         =====> FAIL -- ctrl-c kills native apps but notepad is not affected >>>> mintty -o "CA+c:break"         =====> FAIL -- ctrl-alt-c kills native apps but notepad is not affected >>> This would be mintty -o KeyFunctions='CA+F12:break' etc. >>> The latter two are not valid mintty configuration; Ctrl is only >>> supported as a modifier for function keys and special keys, not letters. >>> This is unchanged with the cygwin version. >> Ah, thank you. That was the clue that I needed. >> >> For those also having this problem: >> >> mintty.exe -o "KeyFunctions=c:break" -o CtrlExchangeShift=true - >> >> will propagate Ctrl-C to the non-native apps and kill them, imitating the behavior of 3.0.X Cygwin. >> >> Now that I have played with this for a while, I am thinking that I like the new behavior better and I have assigned a new key to specifically kill native Windows programs instead letting the Ctrl-C do all the work (I am using Alt-F5 to do this). > Should the above settings not be the default behaviour for backward > compatibility and least surprise to users? I was just taking up the requester's example. Sure ^C is an interrupt function on the command line. This is handled by the pty driver, not by the terminal. The above configuration is a mintty feature of assigning functions (of which break is just one special case) to key combinations, independent of the stty settings. > It used to be mintty just worked as expected with most programs, now additional > interfaces seem to be required depending on Windows versions, editions, and > releases. These helpers should either be included in the package, or be > dependencies pulled in by mintty without which it will not install, with the > appropriate interfaces installed and configured so that mintty, shells, and > programs run under it continue to work as expected. Some recently reported observations are related to the ConPTY project. There have been no changes in mintty concerning keyboard handling. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |