delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/05/19/06:55:58

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F827393F863
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1589885716;
bh=xtR7sJYy/Eh0yKtsk4JBIHjPGJ+eav06jbdu3zFZB8I=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=iF9jo7vTksvxfsBJwlG3gz011etlixJx9LpTD0Dh6Hf2CieMR91IPoBTlmpgSBidp
rntVm0ymCr2CI/RjfKiVsJtRjyGVG7oW7bxbc8rPIyNNxF4hmlJrn1FeMU0EAC6SBe
/YKe2vVIsmcL6gOH3uh/hx/LFY2IHMcy+8eFaDZM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 301E3393BC3C
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=5M2JzcTZwkV7y/cKU7GyEhg+cn6IeZBqbdRiUxXdhQ8=;
b=e9ojIneu2vkLq9qI7VdG5l1OMgBPcq1YS6mPegGs3kW0xUUAblwafIJ00sV3HKlCTC
zhGqi7NoeGRPpftQeG5XlZRyq7FwyZFLgsrTSCajWqgH2eL1BKkxHYdCuqKS9x0UQ95f
8d/hVZU5m0+UEm1IEs3zmdoq4+PnO6Ge49BevNS63tktuTWyFpUQgiibKU2amQixEvjd
bfud/t8GMRcM7wtdsawvvivS5i0Twcfvb4RpOwKo/3u1mfKx09d/ZIapZW+Wfy5bndjH
sLfTIPbW5qYndAxOOTALP4zwYbRnQQmhIMcFC7ElkeHa+JNnGZjLLmUbJ0s8QqIbTOf0
jlVA==
X-Gm-Message-State: AOAM532/MzVoSuXyIV6n9XTISAfAQxe1FxliY1tdPX+Unerwa2l9j3Tm
nYkqrBXXXK6ipnoPOutc6omYOqqlMBpMNSR6yCPiV/mz
X-Google-Smtp-Source: ABdhPJxoaoqpfnPpHxlw3FYL6TRUHcNnqsDPiCsxCzshqrMlWFxGQK6Jjb6mlYOEhDYWxEOKX+Lm2wo5C75Ty4rGr00=
X-Received: by 2002:a19:103:: with SMTP id 3mr10655753lfb.196.1589885712727;
Tue, 19 May 2020 03:55:12 -0700 (PDT)
MIME-Version: 1.0
References: <CABPLASSNEJP7rC1q-L63kqDH1W71hUK1AkJ+OuW8sEWK+ycO1Q AT mail DOT gmail DOT com>
<20200518120534 DOT 97f3515d2295301421f585ae AT nifty DOT ne DOT jp>
In-Reply-To: <20200518120534.97f3515d2295301421f585ae@nifty.ne.jp>
Date: Tue, 19 May 2020 12:54:54 +0200
Message-ID: <CABPLASTGXFXphswEPq+8PNTb_5Y_LwrPBwPvvQ_t5597C7XK4w@mail.gmail.com>
Subject: Re: Suspend doesn't work in cmd
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
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-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: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Kacper Michajlow via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Kacper Michajlow <kasper93 AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Mon, 18 May 2020 at 05:06, Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> wrote:

> On Sun, 17 May 2020 19:57:15 +0200
> Kacper Michajlow via Cygwin <cygwin AT cygwin DOT com> wrote:
> > Hi,
> >
> > Control keys doesn't seem to be working correctly under cmd.
> >
> > STR:
> > 1. Run bash in cmd.exe
> > 2. Run anything, in my case "seq 1 100000"
> > 3. Try to suspend job with CTRL+Z or suspend printing with CTRL+S
> >
> > Ii will ignore request. Works in mintty, doesn't in cmd.
>
> Thanks for the report. This is a known problem, however,
> it is hard to fix soon.
>
> In current console implementation, ctrl-Z is processed in
> read() system call. So, if process does not call read(),
> ctlr-Z does not work.
>
> You can confirm that ctrl-Z works for cat, od, etc. which
> calls read().
>
> One solution might be to introduce a thread to handle the
> keystrokes. I wonder if it is worth enough to introduce such
> a big modification for console code.
>

Thanks for explanation. I report those bugs, because I kind of hope to get
away from mintty and use something like Windows Terminal for all envs. But
it doesn't look feasible for Cygwin.

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