X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=VTx kl4XWD4vrH2sPpMjVHjpQjS7NVU+B4fP+HNYy/3P6uqE6BpTWuumfpFvTHI6yzkG tjoLarzapGETn15/KwuNq7bC1dMtwAd9VZ1100ZiCRNt5/O/7uZNFE0bg06WoiKj CWMI9oY9x+08iQmV8R31tlZJ63WWl7Tv24jHm2qk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=cD3zAJNOo W4PrjiNjfBEQkfNEdA=; b=VIqdXmSycxD3SgBuscRffbiFMczUBEDVuN/AU3byb 8qFBRa6FPt7BqOtbY4i6qlU4Ce+NBP0ietOpR2AaMydYR1W2YAy7tu10lwEyUuZG UEqqJKOd/c+jZ5cury2Dg1Y5rVL0H+qQOKAoycfLDMKoGhMCjdAk8Argl6IlgXUp GU= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Received:a1c, H*RU:209.85.128.65, HX-Spam-Relays-External:209.85.128.65, H*Ad:D*googlemail.com X-HELO: mail-wm1-f65.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=Zo0cBtnnDclff5U5188tfJZ1t4K6Brc+KWJ5rIO/i1s=; b=OJW34sDo60mFo62wJBy3u1fIM9HETz3zGuZYuhP1HMIcmepCZeClAN0Kb+4kcZyg6I J+t76E8P7Ws2fRHrRMoqaLlJKRF837sWq34ts7we05WqY7UgTqYjXW6o+vdITDUv1SuN x6bBXfPS14xxEyH9p/DjRacoTnp88LF4nUnrn1Ul+0MnL2uWUtPbGJ9qbY7qoINsp+k3 5utPGG4svzxET+Micb6njeQnA5432MFhw93TXykgF4zCj3pkF9AZtXcqgEaMGtL1/tZW qDV9TV2Cp44mRkOMwCGAlnzNfGo2bS5/ZB1eC0l+fxy2EkK2X13KDvohxVDuQm7CMcfB 3Nkw== To: cygwin AT cygwin DOT com From: m0viefreak Subject: 3.1.x: Mangled input/output when calling non-cygwin programs Message-ID: <7e3d947e-b178-30a3-589f-b48e6003fbb3@googlemail.com> Date: Sat, 1 Feb 2020 19:00:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Hi, Since Cygwin 3.1's pseudo console support was introduced I've run into lots of issues with non-cygwin programs. 1) Mangled output: See screenshot [1]. As you can see, at what it seems random places, the output is broken. The above can easily be reproduced using Apache Maven in any project, e.g. using a sample project created using [2]. 2) Terminal width: For some reason, non-native programs do not use the full width of the terminal (Mintty and TERM=xterm-256color). Can also be seen in [1] (blue highlight) and reproduced e.g. using Maven with a relatively small window. 3) Typed characters while non-cygwin program is running are lost. Usually, when typing characters while a native program executes, which does *not* read from standard input, after the program exits, all these typed characters are put into the prompt. When executing a non-native program, such as, again, "mvn clean", which does not read from stdin, typed characters are completely lost. This is very frustrating, since I am often quicker at tying the next command, while the previous command is still doing something. 4) Importance of TERM: When connecting to my Cygwin installation using SSH using Putty, TERM=putty-256color is set. When executing non- native program from that session using that TERM, output is broken even worse than in 1), and also keybindings are broken. I need to force TERM=xterm-256color for those invocations. Shouldn't this be handled transparently and enforced automatically by the pcon code? Note 1: This is tested using the latest Snapshot 2020-01-31 18:10:26 UTC from https://cygwin.com/snapshots/. Note 2: It seems that the problems can be solved by setting CYGWIN=disable_pcon but it feels like there is some bug in the PTY code (not in the non-native program being called). [1] https://images2.imgbox.com/dc/2d/MQwSH9S4_o.png [2] http://maven.apache.org/guides/getting-started/index.html#How_do_I_make_my_first_Maven_project -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple