delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/05/19/10:21:11

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 963D3385BF81
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=yandex.ru
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=anrdaemon AT yandex DOT ru
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1589898001; bh=aWgTlhd398eDvzivjNhiK0qTOp78dUQpT1BT7axfYTE=;
h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date;
b=HeAN7ip/su0pkYGNVDny61qxAY5wOY75rbVF0SbnvN9IduFqOTmTcPKifKvIQlMpW
z3BSHmsugknvpHbTKIKIvexWcH8SYmyQ1D4MMTnt9pBL9t1dXelA/F06U7lPitVW/v
D946wR35ocBc3EC6YvhaSNygacuWWaP+ImP2ZrJ4=
Authentication-Results: mxback9o.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Tue, 19 May 2020 17:15:31 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <1238835926.20200519171531@yandex.ru>
To: Kacper Michajlow <kasper93 AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: Suspend doesn't work in cmd
In-Reply-To: <CABPLASTGXFXphswEPq+8PNTb_5Y_LwrPBwPvvQ_t5597C7XK4w@mail.gmail.com>
References: <CABPLASSNEJP7rC1q-L63kqDH1W71hUK1AkJ+OuW8sEWK+ycO1Q AT mail DOT gmail DOT com>
<20200518120534 DOT 97f3515d2295301421f585ae AT nifty DOT ne DOT jp>
<CABPLASTGXFXphswEPq+8PNTb_5Y_LwrPBwPvvQ_t5597C7XK4w AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2
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: <http://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: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

Greetings, Kacper Michajlow!

> On Mon, 18 May 2020 at 05:06, Takashi Yano wrote:

>> On Sun, 17 May 2020 19:57:15 +0200
>> Kacper Michajlow 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.

Why not use mintty instead? :D


-- 
With best regards,
Andrey Repin
Tuesday, May 19, 2020 17:15:05

Sorry for my terrible english...

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