From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 59968 invoked by alias); 12 Oct 2016 08:36:42 -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 59957 invoked by uid 89); 12 Oct 2016 08:36:41 -0000 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 Received: from mail-lf0-f41.google.com (HELO mail-lf0-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Oct 2016 08:36:30 +0000 Received: by mail-lf0-f41.google.com with SMTP id b75so65679451lfg.3 for ; Wed, 12 Oct 2016 01:36:30 -0700 (PDT) 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) Received: from [172.23.202.33] (109-73-33-210.in-addr.mastertelecom.ru. [109.73.33.210]) by smtp.gmail.com with ESMTPSA id 76sm1843803ljb.43.2016.10.12.01.36.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Oct 2016 01:36:27 -0700 (PDT) To: cygwin@cygwin.com Reply-To: andrewbass@gmail.com From: Andrey ``Bass'' Shcheglov Subject: Escape sequences unprocessed under the "cygwin" terminal Message-ID: <57FDF60B.4000206@gmail.com> Date: Wed, 12 Oct 2016 10:32:00 -0000 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 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00163.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 =20 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=3Dansi|. 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 =20 iEYEARECAAYFAlf99goACgkQFX2weoTrDGefMgCdHrp7AxG/DHpOVyKR2YDF4+5c 4IgAoObfYU1JCrgZoCIcXyvH43xMm1QH =3DDp9M -----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