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=ydW7ONlMV9LOIPL7Ae8MPOcejatHYzeNbCW6KQ9pcwf GAKIHujxc9AaQLO5uGz8jgJGyKB2/4vEBQi4h6cvQFe/aaj0yHMIJ+xBEnWZJnmp cGQIt7Ntzt1calv59P2npLP0ZKdFNaWjXMSt2i5Gtz5rPH9UCWlxpREtpg2d/X14 = 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=tApbVYj7Yv4vyUSp97Nv4hh5nV8=; b=NdYhK2p8LsU4qwVNU Dn4IgvAczbDQOgAtdOnr9X1kySMmxNtSBpDgzwzxGKDWExqZ89LEbN1YeGCmToOD 6DTAs3ztoPCaZ++qmrKmsAhks/lU26hT+cg2R4A3Qs/e5EI7a0peQQErCRcGQzp9 tlHbqS61D6mErtuDcTsH3/aIsI= 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=-8.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=prompt, HX-Languages-Length:1160 X-HELO: conssluserg-01.nifty.com DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 01H9rb39000895 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1581933217; bh=iE5A67BoFC03N1JbHiRCji3V91HC6wxizk4G6vbOLDM=; h=Date:From:To:Subject:In-Reply-To:References:From; b=19xVGBXYwta7aXM0z2zjKeJv9RkBzP6XmX7BNEpkAfFECQv79oaWAoZ/HkMB3UYnx PC6SmYWaLBrw+c7iqjiEwO+m/exz4McgPvatX7VIrTBxhomKvtRYbRJcVMEje1RRNX 0Ed+rLbtHOJZ4CzABZ+yfvFExFGAk+KpJnLFJCabAeswxkZkA8hRcmPeGN2NzlpSqD uBUZuTia8O+F1oA9ueuvLw6mz2JZG6xW7Rj55jQ1aqHwT/DPKT0qC+xjABvLS+kRB4 A05QD0FuUh5KqkB2F3o5jbHvR5aVHozptV73DdypIO29YBA0ru/hU+RwAhMHcNF6s0 mk6Lo1BO8qBFQ== Date: Mon, 17 Feb 2020 18:53:41 +0900 From: Takashi Yano To: cygwin AT cygwin DOT com Subject: Re: Calling a Windows program changes terminal character attributes Message-Id: <20200217185341.4de0180752a4c0ffd75b6997@nifty.ne.jp> In-Reply-To: References: <6671cea9-c752-d13d-ef1a-db1e5875b244 AT maxrnd DOT com> <20200216195320 DOT c902d4e1d5b13b908b06e81a AT nifty DOT ne DOT jp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On Sun, 16 Feb 2020 11:51:27 -0500 Lee wrote: > On 2/16/20, Takashi Yano wrote: > > On Sun, 16 Feb 2020 01:31:14 -0800 > > Mark Geisert wrote: > >> Thanks Takashi for your reply. I just wanted to add that setting > >> CYGWIN=disable_pcon in the environment does not fix this issue. > >> Please ignore this if that's what's expected. > > > > CYGWIN=disable_pcon is needed to be set before launching mintty. > > That is, the setting should be in user environment in system > > property in control panel rather than in .bashrc. > > Does setting CYGWIN=disable_pcon do the same thing as adding this to > the registry? > ------------- > Windows Registry Editor Version 5.00 > > [HKEY_CURRENT_USER\Console] > "VirtualTerminalLevel"=dword:00000001 > ------------- No. They are very differnt. VirtualTerminalLevel=1 enables ANSI escape sequence handling in command prompt even without flag ENABLE_VIRTUAL_TERMINAL_PROCESSING. CYGWIN=disable_pcon disables pseudo console support in PTY. PTY is used in mintty, xterm, sshd, etc, but not in command prompt. -- Takashi Yano -- 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