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:reply-to:from:subject:message-id:date :mime-version:content-type:content-transfer-encoding; q=dns; s= default; b=GZlfvQGHC98NRs/K0vP83gt5+5WzZOXI9obIfyJoacwBpojzbZh7b xU12gOUR9VIOYW1ajpboZJq6AbbL2MY+8bKtv1h8W9+gOZtmY8euxpu7yStgMvKJ MuE4ZwnqqzT+u0JwqDtbgU/mSxpLSN6lHun+jujviZzWNon84ybqWw= 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:reply-to:from:subject:message-id:date :mime-version:content-type:content-transfer-encoding; s=default; bh=7vOaFsKd/oRQ0iQKwmgGi0aW5i0=; b=UxGm2LUH08wvvNKZ3J95gs3hUQzc sKmS+SczYIxx7ICKVrnVK5lZOr+1proOgZYNa6gZN4O55jDYXZPx0vtJEn5YX+y9 F9Gzeq9pTRN2Vu64H836kEvqc0FB2LthsgLtxfQCud3R2UUS6a4W37tD8DPMjgJd GgGJRRFqC6uiorI= 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=UD:imgur.com, commander, BEGIN, 033 X-HELO: mail-lf0-f41.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:reply-to:from:subject:organization:message-id :date:user-agent:mime-version:content-transfer-encoding; bh=BUeXmCXmeJofbupHIp6c+qhCNhhy39pAmhGWxDcEvFA=; b=HNyDks8knhXaQsyKtQgyzYyQuXt/Y9ZA5YvA9aDmSPmpSsD30jB0MKlbVb7SyKKffa aUQU4Y6Peo19Q0HbCTUt5X50B8Cygol2CuZ5hQw9uhKVkDCxGH3dShlZE0BV5JMPDPFH SMKiJTeJtyz+XVwH6ttO0orixbPVGEOzCCRJ8YPhdKFvzQ1n6OkpcGMJHizQ0yzOono5 DeUxvnoX4P41oaj+rcNgnivXcwQU9pMn/jhkuqg6aLsDZi/uq4+zzxqq24QB6M6Cdea3 NlkiKRKWF0MpFi00xEfoA4E6N/FAbtaOYyR3y2yeR4FAD0EO3ZmZcP7EWFwkN9YGQRJw zHZQ== X-Gm-Message-State: AA6/9Rkoqd4c30xS1FQJxSPRoPWyWlT4y4GC6gW3DkqU1pKqW97wQhU6lPFCNxNZbiww9w== X-Received: by 10.25.28.197 with SMTP id c188mr6296166lfc.81.1476261388631; Wed, 12 Oct 2016 01:36:28 -0700 (PDT) To: cygwin AT cygwin DOT com Reply-To: andrewbass AT gmail DOT com From: "Andrey ``Bass'' Shcheglov" Subject: Escape sequences unprocessed under the "cygwin" terminal Message-ID: <57FDF60B.4000206@gmail.com> Date: Wed, 12 Oct 2016 11:36:27 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u9C8aqTV001316 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi All, I have a Java application which uses ANSI escape sequences to display colours, position the cursor, etc. It works fine under regular Unices, and also under |xterm| and |mintty| (in Cygwin//), but I'm having trouble running it under the "|cygwin"| terminal (i. e. |bash| launched from |cmd.exe|). As you can see from the screen shot (https://i.stack.imgur.com/Ohg41.png), escape sequences are output "as is", without processing. On the other hand, I can easily run smth like |echo -e '\033[1;31mTest'| -- and colour text will be just there. At the same time, if I launch exactly the same application from a Midnight Commander// subshell, escape sequences produced by the application will be interpreted correctly: https://i.stack.imgur.com/jV7UW.png Also, if I log in to my Windows box using SSH (i. e. replace the local connection with the remote one, but retain the same |"cygwin|" terminal), again, escape sequences are processed just fine. It looks like when a subshell of some kind is created (|mc| or |ssh|), the terminal is put into some other mode. But playing with |stty| wasn't helpful, nor was export'ing |TERM=ansi|. Could anyone please suggest any solution? I'm running > CYGWIN_NT-6.3 UNIT-725 2.5.1(0.297/5/3) 2016-04-21 22:14 x86_64 Cygwin and Windows 8.1. Thank you in advance. Regards, Andrey. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlf99goACgkQFX2weoTrDGefMgCdHrp7AxG/DHpOVyKR2YDF4+5c 4IgAoObfYU1JCrgZoCIcXyvH43xMm1QH =Dp9M -----END PGP SIGNATURE----- -- 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