delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/09/21/18:46:34

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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; q=dns; s=default; b=fqlyHILBbCH74FTuToyj5nBpZ8u5I
m/slo7sdoHDebhQ9I1fFmZMDQaKqsK0bIy2EGmIPrVN4ALj6Fyd6515s4S0x9XMr
e98P5I5As6SeU84uW+nCj4fHpfAdRyPaAHnAUaF3VAtYz/FXzDrkHhl4FggeyVkL
gx8ETYX6TQF1MU=
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:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; s=default; bh=riHCnqQSBkHu7WiU5igbjwG3pTg=; b=LIW
6btG1aVenZ/HG6I1jtq6Q4RUnrnHOKhZzcZPjQA7FG541Kew6qVEW545p65TUOQ8
6iSil/H6dWQgkS0aFQm+SThqFrK20X+XasHHhXkg0u8E6WhgAzQVbabqoecqHcqA
Bjxk0DOozB7cAhPeSXTy859tnaISdUyxWsVh05gs=
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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=
X-HELO: NAM03-BY2-obe.outbound.protection.outlook.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mxjnwi4XlIEehdSxh9JVmh5/k5edASU96bELtveEYg3/PwhnY6HkSUnA1Hpr/etMlK043E0AQumjvTc/FmtOi11+CPpwm3B93bkaV/MF1e8Oy9zwiqMWAJb8GjJ97MCqyd09GyvgrJ8amnTGnrzFl+UC9SBBMcu+ngoM/KLjmpBiiLIAjMQbey5hCK332jNx3xVR1xkkNoHGmlrk2TNECMclUy2tSBWZzmNLdEQycQK0k89gi+HAg1EnFSzijIY2RbFvfQ3ET3HXAoKRB3vNl/GzX2vy3uKYIpXZLpY/8uTCaRb0Mdx/WF4siTjebXAk4EiLEF9qJGlI1rsrOIMuuQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VycHzUT2APTL3JjI0gGujL+knP54QiSQGY5U0amUH0o=; b=LwH4fStGwfnXNdVF1f2wWkHUUMErWWqUo4xBbW+QkWFtlOsF6MsMfheCv8a8Yo4y3hWOK5w/PKMYTgA/sqmblwSdfWm534jpdssQOfOtXCQP07OC55RXJO78vjmh5qZBSpb23tDNeyce0dUstxZWlM5dPnubukmvSEOivtUhrlJbmoMo3OEWx0UqsAdlp30HagaqDmRlBCoIngyYfArLY5VfpAwY+dYDmjf/a2v/nRcHSuhIceFJEQCmXJRbks8suUsQ6Ja2l0pGV+tA7ZDk1AoRNQEYv/mh15DICGQbHr1lL2kwR3xlPKpgRfNIVUtaPYpOxrpHOxhbsgxO+m24tw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VycHzUT2APTL3JjI0gGujL+knP54QiSQGY5U0amUH0o=; b=DbPH91V9Zi8pVOuBiKk0WbDAFxhd0/5YA+r8Vc7V4X4OkGjdYxZjZ8aA1oNpN9iDe4eWESPCWfiie4uvOi9udhnu+gr+aeYXJ8VVp3H4CLOWKJg759cIG3SxjPtSKhzGe33KEw1lNT3J5/QTOMkGLnMlCm5XQwZXk2ed4P4DLBc=
From: Ken Brown <kbrown AT cornell DOT edu>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: Cygwin 3.0.7 on Windows 10: ANSI Escape Sequences not affecting color when run in Windows Terminal
Date: Sat, 21 Sep 2019 22:45:00 +0000
Message-ID: <a43f6dc8-4135-8433-71b0-82b44ce0c915@cornell.edu>
References: <CADLV35iGHEd1ssLdwMASn9DBnNWudKX-V5CuPiL_5xLtprE3PQ AT mail DOT gmail DOT com>
In-Reply-To: <CADLV35iGHEd1ssLdwMASn9DBnNWudKX-V5CuPiL_5xLtprE3PQ@mail.gmail.com>
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown AT cornell DOT edu;
x-ms-exchange-purlcount: 1
x-ms-oob-tlc-oobclassifiers: OLM:9508;
received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: cvFOGEsRgr5Ipf2d3JNW6doK3CyAWBGlPLh1W0Agb3inba1rqC7mT484xSUMIvhUdTGZjvobxavT1slJw2N3rQ==
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x8LMkGc6027829

On 9/21/2019 12:06 PM, connor horman wrote:
> When using windows terminal, programs using the C Functions provided
> by cygwin1.dll to print to stdout (such as printf, puts), do not
> render the text color as would be appropriate when using an ANSI
> Escape sequence, such as "\033[38;2;255;0;0m". The functionality has
> been confirmed on native linux with glibc, as well as when displaying
> to mintty.exe. Additionally, the issue does not occur with native
> windows executables performing the same task, linked with msvcrt as
> the C library implementation, both run through windows command line
> programs such as cmd.exe and powershell, and cygwin bash. The issue
> seems to be a disparity between the handling of these escape sequences
> in cygwin1.dll and in Windows Terminal as is noted in the issue filed
> at https://github.com/microsoft/terminal/issues/2837.

By "using windows terminal", do you mean the terminal you get by running 
Cygwin.bat?  If so, the issue has been fixed for the upcoming release of 
cygwin-3.1.0.  You can test it by using Cygwin's setup to install the test 
release cygwin-3.1.0-0.5.

Ken

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019