delorie.com/archives/browse.cgi | search |
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:date:from:to:subject:message-id:in-reply-to | |
:references:mime-version:content-type:content-transfer-encoding; | |
q=dns; s=default; b=wDQWmPCKPe20tpHcUdT+6kQSur8o8im19OKOc5nl03Z | |
/Y51n7HFkjR4D92Z48koCiI/cE3740Ouzh7aJB/SVcrOpqX/WrqaVJ5xrUkoeZCF | |
6x/ZRocoupce61IFueywGmw71okerk2ePPxB75YyPHzt9medsEH9Za5GwCwBzZVo | |
= | |
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:date:from:to:subject:message-id:in-reply-to | |
:references:mime-version:content-type:content-transfer-encoding; | |
s=default; bh=seFuw1+jIE55jp5yzDnYE66DROU=; b=nyMjc0FDm4k+lx83Q | |
kz0bX3YW6Lk8ANqjtZsA9c4N1NJtq3ufbXYAlzOIWvao1NtlG38Hu2J963NAVRLP | |
V4q1g++zOEglwRhC0+V5dTvzujtkZ8cjIvE5mP33wXdDi+xMzgnH3zzOyMknzvYp | |
QUiXzm47gJSMUZqDMSwDCB7r9g= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=-5.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HDKIM-Filter:Filter, HDKIM-Filter:OpenDKIM, HX-Spam-Relays-External:Sendmail, H*RU:Sendmail |
X-HELO: | conssluserg-06.nifty.com |
DKIM-Filter: | OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 018EOoZj003058 |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1581171890; bh=P+FBNTtLamitZo1cbbCk+YB/tM+N/RWlnpoj8UL464k=; h=Date:From:To:Subject:In-Reply-To:References:From; b=yXo+g5maHhWNshIbRCy0zKYjLv91BiqF9DksmN5FuRdLpSj11cBFnLRK49Vb97Ilh Z8Ubh23zLhEg5MHrM36dO+4E1IAJrzwjvwisOGAbFvOtFU32NWK1iMyDndn7En39/6 w+jPJ74gxvbjCRWFgbd/PA3r1/ynTNg6JoGlzOpUMK8wl8UFYO2tJ0Jb7wEZ/EhXnL YCtKY/RGKqgYyz8CzmbKxvL6dINqOORWXNR2RnZB5/tXUwxm/KyJmC6n56mc26yq/h kQ9FW4NKEElru1vJ47QW1nuYKF7nss3k3UHEecoczwnLgfEfEpPCTY75EosGPDvU6m v1p77qlcZYJow== |
Date: | Sat, 8 Feb 2020 23:25:00 +0900 |
From: | Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Cygwin-3.1.3: Terminal contents are overwritten by less graphical ones on the start of non-Cygwin programs |
Message-Id: | <20200208232500.8d938b55f031316e196a1e84@nifty.ne.jp> |
In-Reply-To: | <CAFLRLk-GK_kCL6Wdf=TSR-fNwsuf3BDv-C465S6RFX0hNRqQFw@mail.gmail.com> |
References: | <CAFLRLk-GK_kCL6Wdf=TSR-fNwsuf3BDv-C465S6RFX0hNRqQFw AT mail DOT gmail DOT com> |
Mime-Version: | 1.0 |
X-IsSubscribed: | yes |
On Sat, 8 Feb 2020 20:13:09 +0800 Koichi Murase wrote: > Hi, this is another report related to the pseudo console. > > Description: > > When a non-Cygwin program is started for the first time in that PTY > in terminal emulators such as Mintty, Xterm, Urxvt and GNU Screen, > the terminal contents are overwritten by less graphical ones. I > guess that the contents of the internal pseudo console (which is > constructed in the background) is somehow output and overwrites the > original contents of those functional terminal emulators. > > This is reproduced with the latest snapshot and also with the latest > commit 3a71c4638. > > Repeat-By: > > Open Mintty or Xterm and run the following commands (with Bash): > > $ x86_64-w64-mingw32-gcc -xc - -o nocyg.exe <<< 'main(){}' > $ printf '\e[%smhello\e[m\n' {0..9} > $ ./nocyg.exe > > With the first line, the simplest non-Cygwin program is compiled. > With the second line, "hello" is printed with various graphic > styles. However, when one runs a non-Cygwin command in the third > line, those graphic styles are reset (i.e., overwritten by contents > of a less functional terminal). > > Details: > > * If I start Mintty or Xterm with the environment variable > `CYGWIN=disable_pcon', the problem does not occur. > > * Before the commit `e38f2dc9b' (Cygwin: pty: Revise code waiting for > forwarding again.), this occured every time a non-Cygwin command is > executed. But after the commit, this only occurs for the first > execution of any non-Cygwin program in that PTY session. Thanks for the report. However, this is the intentional behaviour. In early stage of pseudo console support, PTY cleared screen when PTY is opened. This is because: https://www.cygwin.com/ml/cygwin/2019-10/msg00063.html (Currently, behaviour change when TERM=dumb is removed.) However, several users who dislike clear screen complains. So, I changed the behaviour to that of the current version. https://cygwin.com/ml/cygwin-patches/2019-q4/msg00089.html In Win10 1809, the result of your test case is even worse. > * The problem is not restricted in just clearing graphic styles of > characters. For GNU Screen I use Screen-specific terminal sequences > "ESC k ... ST" in my shell prompt to set the title of each window. > But the overwriting contents seem to be constructed by another > terminal which does not recognize this terminal sequence. As a > results, the layout of terminal contents after the non-Cygwin > program is completely broken. The problem should occur with any > other functionalities which are supported by modern terminal > emulators but not by pseudo console. How can I reproduce this? > * As well as non-Cygwin programs, also Cygwin programs `ssh', `scp' or > `git push/pull' with SSH connections cause the same results. I > guess SSH utilities internally use non-Cygwin programs. (Actually I > originally faced with this problem with these "Cygwin" commands.) I cannot reproduce this. Cygwin ssh, scp and git does not triggers redraw screen in my environment. Do you surely execute *cygwin* command rather that windows one? -- Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |