From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3279 invoked by alias); 31 Mar 2019 15:00:41 -0000 Mailing-List: contact cygwin-developers-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner@cygwin.com Mail-Followup-To: cygwin-developers@cygwin.com Received: (qmail 3236 invoked by uid 89); 31 Mar 2019 15:00:39 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,URIBL_BLOCKED autolearn=ham version=3.3.1 spammy=screen, drawn, annoying X-HELO: conssluserg-04.nifty.com Received: from conssluserg-04.nifty.com (HELO conssluserg-04.nifty.com) (210.131.2.83) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 31 Mar 2019 15:00:36 +0000 Received: from Express5800-S70 (ntsitm424054.sitm.nt.ngn.ppp.infoweb.ne.jp [219.97.74.54]) (authenticated) by conssluserg-04.nifty.com with ESMTP id x2VF0UJC003478 for ; Mon, 1 Apr 2019 00:00:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x2VF0UJC003478 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1554044431; bh=wEm6NSDbjz3+N8gTchcxXpsOeE0k6EVL/ZJTgXuE6Sg=; h=Date:From:To:Subject:In-Reply-To:References:From; b=NXp/m8zJJ6QErzdZUPJojpXFGbHV0kZyj+JOfhs4QaThMt+nUeCZtwWG1ggx833Vv EuGqL8EszhOMvce+ZheU1xou8iCcckfOnWnMovci6lQIeR4f7do1knfoed3/4ldJWf LjAFNFdjpaJG/1/5b0Doetl3+x0o17CzkKyqyF5Djj7OB9oq+W4a8wgUNXgHg4A27P 7oIIr821Lrm4LHjElqUyzALPZberC9pUHieqcUrmAJX0cRveyxqGYu761kG76DrJo2 SjJcgQaNxdpeYyYxr8YgHCjHKBGKlA36lREE6u1FVfAQ5ksGlP+4P1SuQLHI9Qd92m qvkfmRShK/u9Q== Date: Sun, 31 Mar 2019 15:00:00 -0000 From: Takashi Yano To: cygwin-developers@cygwin.com Subject: Re: Pseudo console support in PTY Message-Id: <20190401000039.551d297e21d0c3ed16292248@nifty.ne.jp> In-Reply-To: <0f15049e-5b71-d9dd-434a-dcc4c1801b92@towo.net> References: <20190330220804.a3be5fa8c4d5569464309d66@nifty.ne.jp> <0f15049e-5b71-d9dd-434a-dcc4c1801b92@towo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00011.txt.bz2 Hi Thomas, On Sun, 31 Mar 2019 00:07:08 +0100 Thomas Wolff wrote: > (non-cygwin program), and handle that all in spawn.cc. So I am wondering > whether your patch is maybe doing "too much", and why e.g. > fhandler_console should be modified, as there is no need for such > adaptive handling when running a console application in a console, even > through cygwin. As for the console code, I did "too much" if limited to pseudo console support. It is just another job. It is essentially not necessary for pseudo console stuff. Please reffer to: https://sourceware.org/ml/cygwin-patches/2019-q1/msg00090.html for more detail. > > Known problems: > > * Sometimes the screen layout would be broken. > If you describe the issues, I'll be glad to try some analysis. Thank you. Actually, the cause is almost known. Pseudo console sometimes re- draws the screen according to screen buffer. However, the screen buffer does not have the screen contents drawn before PTY was started. This breaks the screen layout. One solution may be to clear screen when PTY is started. It's annoying a bit... -- Takashi Yano