delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/10/12/06:33:02

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=W1Gf2IroFfiIB0hN
UHL6KkR5zL9QsfICQ+m3CUuC4z4OjFG/09QK0onEaACscAflyFQtgVrQv8R69vv2
VXtSgD9qhy2T34voUBRrWEXTd0Cq5Pt46oymcs/xLar80/StHhaMKrLGyUl8EnwG
N2r/E4DOsmZn7EjlPGREE8oRdhg=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=9G3CVjx3qO3pJPrhHSs60z
1KVcQ=; b=I+OHR9/tIRP35pfM6xCNq3Lclpyd6PKoiEbOvQKIcdDXLkBYOdr7Xz
8MN03i39eAQIc2vFI7xfcHb5ub+yVDSLB11TeL0A/eVcvMENskIm1B2UVe61jw7z
OxhpR7VvAaTbwH3xyDmAHJ85ACYNplX8h+w4mFPCbUayWV3vgsVRY=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 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=bass, Bass, Shcheglov, shcheglov
X-HELO: mail-it0-f51.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=IksEI4PppTOHS5CPZVt6KRGYKa4iHSWjig1vIAhKdAA=; b=R7Nv25oNvGbcrxrRpfkjBM5oOeZ/AUMXDY3PjW7qUk8gGnAD26ygJvduUKJaVBgbPx PhdzfqQfwSzkNN9T5MC0YKOce74Ju9W7n0DkaVKlrcPMzwFQ9m9DDJwlpxXDLEC/Yq2B 9SYXcGPMjrQjAtz5myOtLSyQdCJx3yPKR83JYwHJ86rCw+Kw+i2TsBKKXhe+8HEGBgXa tcNxShGEi9l74eeJ0SqBqmwRbc74ldfwSu9qhN1DCWuFVIuXrz0av5Sk4AY2gV6wj2C5 X/VGqhNU90ML1K/vH06aNwTrUDjMo0RChflD6GLegnoADbp7prcCB3x0JmiKAhpGf03H TXEw==
X-Gm-Message-State: AA6/9RnxYo2ZWWeQD0F4RetHyrDxSoZ6vDyz0VAcQo39MZiKfFW6T6mxbp7UDubzZTNZPg==
X-Received: by 10.36.33.18 with SMTP id e18mr1914539ita.113.1476268354885; Wed, 12 Oct 2016 03:32:34 -0700 (PDT)
Subject: Re: Escape sequences unprocessed under the "cygwin" terminal
To: cygwin AT cygwin DOT com
References: <57FDF60B DOT 4000206 AT gmail DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <14aba7e2-a859-5476-f460-5721e3b9e61d@gmail.com>
Date: Wed, 12 Oct 2016 12:32:29 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <57FDF60B.4000206@gmail.com>
X-IsSubscribed: yes

On 12/10/2016 10:36, Andrey ``Bass'' Shcheglov wrote:
>
> -----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|).

cmd is not a Cygwin terminal, it is a limited Windows one.
What is the problem to use mintty ?

> 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// <https://www.midnight-commander.org/> 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.

from Unix ? The terminal on that side is able to properly manage
escape sequence

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

use mintty.
It is the recommended one for cygwin

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

Regards
Marco


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