From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115882 invoked by alias); 18 Feb 2020 22:54:12 -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 115874 invoked by uid 89); 18 Feb 2020 22:54:12 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.133) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 18 Feb 2020 22:54:10 +0000 Received: from [192.168.178.45] ([95.90.246.218]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MGi6k-1jHv0m1hty-00DrDP for ; Tue, 18 Feb 2020 23:54:06 +0100 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> From: Thomas Wolff X-Tagtoolbar-Keys: D20200218235406608 Message-ID: Date: Tue, 18 Feb 2020 22:54:00 -0000 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: <937489593.4978154.1582060605719@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2020-02/txt/msg00143.txt.bz2 Am 18.02.2020 um 22:16 schrieb Kevin Schnitzius via cygwin: > With Cygwin version 3.0.7-1, crtl-c kills native apps that are started from the shell,  For example, starting notepad in the foreground from bash would be kill by a ctrl-c. > > With Cygwin version 3.1.2-1, crtl-c DOES NOT kill native apps that are started from the shell, > > Can I restore this behavior? > > 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. > These tests show that the 'break' signal can be propagated from mintty but is not for the ctrl-c case. > > I am guessing that this behavior is from the pty handing but I have not dug into this code or installed winpty. > > Is all this documented somewhere that I could not find? > > Kevin > > -- > 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 > -- 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