delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/11/24/07:52:46

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2C46F3858001
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=free.fr
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=akikij AT free DOT fr
Date: Tue, 24 Nov 2020 13:51:59 +0100 (CET)
From: akikij AT free DOT fr
To: cygwin AT cygwin DOT com
Message-ID: <159295841.536767529.1606222319350.JavaMail.root@zimbra93-e16.priv.proxad.net>
In-Reply-To: <938348063.536233005.1606213898648.JavaMail.root@zimbra93-e16.priv.proxad.net>
Subject: Can't start a cygwin terminal(mintty) as admin
MIME-Version: 1.0
X-Originating-IP: [90.109.3.11]
X-Mailer: Zimbra 7.2.0-GA2598 (ZimbraWebClient - GC86 (Win)/7.2.0-GA2598)
X-Authenticated-User: akikij AT free DOT fr
X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_50, FREEMAIL_FROM,
KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE,
SPF_NONE 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

From some months, use of a terminal with cygwin is changing and changing but for me with more and more difficult to use.

Prior to 3.1 version of the cygwin package, I could use two kinds of terminals bash and mintty.
I like the bash version because I can launch with it an admin session, simply in telling to shortcut "exec as admin".

But with the pty support provided by the new cygwin package, the bash terminal behavior has changed, relatively to Ctrl-C support.

I have a curses application to launch bash scripts applications through a MMI interface presenting several choices of them.

Before 3.1, for mintty and bash terminals, on a ctrl-C, my application MMI and bash script were stopped cleanly.

But now for a bash terminal, a Ctrl-C quits the curses application in leaving the shell script to continue in background.
To day, I don't know how write one C application with ncurses being compatible with bash and mintty terminals as yesterday.

QUESTION 1 : HOW TO NOW HANDLE CTRL-C in a multi threaded cygwin application regarless of terminal

As I am obliged to use mintty, now I can't launch a mintty terminal session as admin, I don't understand why.

QUESTION 2 : HOW TO LAUNCH A MINTTY SESSION AS ADMIN

My questions with last package versions (or not) for cygwin and mintty.

Thanks for your help



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

- Raw text -


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