From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 110015 invoked by alias); 19 Feb 2020 20:21:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 109923 invoked by uid 89); 19 Feb 2020 20:21:42 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=pulled, H*f:sk:1610701, H*i:sk:1610701, H*MI:sk:1610701 X-HELO: smtp-out-so.shaw.ca Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.139) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Feb 2020 20:21:41 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id 4VqijNal5RnrK4VqjjmlTE; Wed, 19 Feb 2020 13:21:38 -0700 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: cygwin 3.1 pseudo console in PTY and break/ctrl-c handling To: cygwin@cygwin.com References: <937489593.4978154.1582060605719.ref@mail.yahoo.com> <937489593.4978154.1582060605719@mail.yahoo.com> <1610701589.5557144.1582142570779@mail.yahoo.com> From: Brian Inglis Message-ID: Date: Wed, 19 Feb 2020 20:21:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: <1610701589.5557144.1582142570779@mail.yahoo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00153.txt.bz2 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? 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. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- 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