This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH v2 0/1] Fix PTY state management in pseudo console support.
- From: Ken Brown <kbrown at cornell dot edu>
- To: "cygwin-patches at cygwin dot com" <cygwin-patches at cygwin dot com>
- Date: Sun, 1 Sep 2019 15:13:47 +0000
- Subject: Re: [PATCH v2 0/1] Fix PTY state management in pseudo console support.
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cuA0j+/Ghq3s2AyFdzgyy4yffBYCsDw1k+g3NY3K7Uk=; b=HZfoX2TVHOVOr5Aw+eziVjXyvGcNelHF+RkQU655qfzw06kZkqsDReoGFvdutatKmr0B7wXEuCLrO7KkiVhMnPe2bjtMiyC6/SrmuoZ2revoy8eZ9QGcOz8j9QDYYTu6nakYQQOPHfPJoRgVD9GNKnzZduIJ7RUEvYnNpVu/KQ/13an1MSPwKqLrHTt65/P+3WdPMfXUhJlo7Mpo0u5Ghqz1by5z7jRQ4YDbmbWRrIrP/8n7XbsO7VnfzQPL7v3/GD+oXhMffHcPDxcgPLbxyTxR91UmgcAp52cJJEKfidHEgLRlRKsrx6sPoRQ6t2TAipFwJv6slSp14eVzIHu/Mg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DfQ4kwSZKykelc16uvUG0YvDdzYxu0idpH3aGppahYQsHBswZ5W9AaOirSSPy13s5eYzZiRNop15B85CW+f1S8mA7DoleNeTl+DrMu/M0nA/lJu+dsgY6zxzwxbmPJ3t6Zfn211Elb2rSwKulyleKDQxxBbV+1qZ9ntNYEkA4bgnaFBwf29AAvkOZzO7Mbc/T3nHvc+PATxVVpURgF5DZofxrtURtQYDZWiI/dq0icnLwm88IylgQRUmKXXRD1IS6Zz3d7ypeQ53go9tz5+A1R/J4FbemPe1QT/OepobOgUC35UAL1+NlOW/XtAlGFqT3XsVYwoldFTV1tXrjqBn/g==
- References: <20190831225446.1506-1-takashi.yano@nifty.ne.jp>
Hi Takashi,
On 8/31/2019 6:54 PM, Takashi Yano wrote:
> Pseudo console support in test release TEST: Cygwin 3.1.0-0.3,
> introduced by commit 169d65a5774acc76ce3f3feeedcbae7405aa9b57,
> has some bugs which cause mismatch between state variables and
> real pseudo console state regarding console attaching and r/w
> pipe switching. This patch fixes this issue by redesigning the
> state management.
After applying this patch, I get the following in mintty:
$ cygcheck -cd | grep bash
grep: write error: Bad file descriptor
Further commands after that lead to the cursor jumping around.
Here's a second glitch I've noticed (starting with commit
169d65a5774acc76ce3f3feeedcbae7405aa9b57): In emacs, if I run a command that
uses compilation mode, the output displayed in the compilation buffer starts
with ^[[H^[[J. Here ^[ is the escape character, so this is apparently the two
ANSI escape sequences ESC[H and ESC[J.
Sample commands that use compilation mode are 'M-x compile', 'M-x rgrep', and
'M-x find-name-directory'. I can provide more detailed reproduction
instructions if you're not an emacs user.
I can also try to make an STC, but that will take me longer.
Ken