X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8C53F3857804
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=towo.net
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=towo@towo.net
Subject: Re: Can't start a cygwin terminal(mintty) as admin
To: cygwin@cygwin.com
References: <938348063.536233005.1606213898648.JavaMail.root@zimbra93-e16.priv.proxad.net>
 <159295841.536767529.1606222319350.JavaMail.root@zimbra93-e16.priv.proxad.net>
 <824848490.1294388.1606249323648@mail.yahoo.com>
From: Thomas Wolff <towo@towo.net>
Message-ID: <b5b9d72d-0ebf-82f9-c13f-3b4933ecf0c5@towo.net>
Date: Tue, 24 Nov 2020 21:59:05 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
 Thunderbird/78.5.0
MIME-Version: 1.0
In-Reply-To: <824848490.1294388.1606249323648@mail.yahoo.com>
X-Provags-ID: V03:K1:0ZyMSiaQ8I7gXSkaeXkYKHR7jk8nB4S3Bj5vSIsC8XOcigiVerP
 //xRijQCMTS+PcP11egfpUP75WJCZR3hHaARMG14xnz7E7AFpwjH83Nh1BVTTkyKw/RqEV/
 a8sqMrMLh/88B4Pkgc4ed2U/Zzz6S2xnE4ipo4ZzpqOS44HhRT/ILa2u4wd+luq1syjgQQU
 TBBKWFB20iV1r5PnI/jeA==
X-UI-Out-Filterresults: notjunk:1;V03:K0:7sXpb3l7fLk=:fnvh3udMsYHYQzVLoac98H
 2/BHR1OHfeNHzTqPRKo/vBtPWBTHpSqdWYlNoUNa69dTjRRn2yR/A36ooeWyrqDxt+K3Vrmtp
 eYFGKeXhG7sZm7b4UcuVykOa4PLU5AgpgVTG0yC36/dxO/TGpP559T2VSVlvtt4n+wtsSFXl1
 kZFa4jpIMp4sBDfA+QR9umPHkL+UA00AvFNKNLkVKERK6X4fDSgv8Kk1nMdKLsIV/FnGmZLmQ
 Gi6/wZcI7Eftjc3wvivL/o2A7mQhOqf6E7IFqeHyqwZjeSk5dlF2uJ+cIEKAGWYWnsyJ8lRta
 6+3m0hI2oF7P9WZIBBZXkJh+6czY5XeLUXigxaYedjHbSJzk/PjeKpvbsYFkSAsoBKEfGnx0J
 xWQ1LrAITXiklJBkZoqRwraIlY/lSyuMCUGJ5G8nhVt19G+rTOerATSbNKfD0bZ+9XHFbRKl+
 5TQimSBuZg==
X-Spam-Status: No, score=4.4 required=5.0 tests=BAYES_00, BODY_8BITS,
 KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_ABUSEAT,
 RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, RCVD_IN_SBL_CSS, SPF_HELO_NONE,
 SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Level: ****
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0AOKxd0p032444

Am 24.11.2020 um 21:22 schrieb Kevin Schnitzius via Cygwin:
> On Tuesday, November 24, 2020, 07:52:11 AM EST, akikij@free.fr <akikij@free.fr> wrote:
>
>>   QUESTION 1 : HOW TO NOW HANDLE CTRL-C in a multi threaded cygwin application regarless of terminal
> Ctrl-c is broken on mintty.
This is a wrong statement. For a terminal, Ctrl+c is just a control 
character, nothing else. It's the pty device, shell or application that 
may, or may not, associate it with specific handling like interruption.

>    I use this:
>      D:\cygwin64\bin\mintty.exe -o "KeyFunctions=A+F5:break" -
>
> And use alt-F5 as a break that works on both Cygwin and non-Cygwin processes.
>> QUESTION 2 : HOW TO LAUNCH A MINTTY SESSION AS ADMIN
> cygstart --action=runas mintty.exe
>
> Kevin
>
> --
> 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

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

