From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69089 invoked by alias); 1 Feb 2020 18:00:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 68918 invoked by uid 89); 1 Feb 2020 18:00:16 -0000 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 Received: from mail-wm1-f65.google.com (HELO mail-wm1-f65.google.com) (209.85.128.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 01 Feb 2020 18:00:14 +0000 Received: by mail-wm1-f65.google.com with SMTP id f129so12338092wmf.2 for ; Sat, 01 Feb 2020 10:00:08 -0800 (PST) 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== Return-Path: Received: from ?IPv6:2a02:8071:2ca0:d900:248b:4de7:d86b:925d? ([2a02:8071:2ca0:d900:248b:4de7:d86b:925d]) by smtp.googlemail.com with ESMTPSA id r3sm18068606wrn.34.2020.02.01.10.00.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 01 Feb 2020 10:00:06 -0800 (PST) To: cygwin@cygwin.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, 01 Feb 2020 18:00:00 -0000 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 X-SW-Source: 2020-02/txt/msg00007.txt.bz2 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