delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/10/20/15:28:48

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=DXYYzxjBRRc55TKO
qSCACePlZafH4aDxWnn7aWQ3E1pF1MoQyB6G7kTGyCMexcK3k/f+cl06JxTk5JKc
3EsdxT06siP1wa1gWO61M9jp5OlD9fnWXDrcCz9fcVSZRwq8IoIkOSOhgVxi3tDH
UzJAWsJ6EcWf4Fn2ln565epMLm8=
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=/9NK4jniQzPC30mEJIZY4B
LogYM=; b=xEgG0zNZQ1T3J9NBKIYAJq+8K9t3rMu7akXcJNAKOG9+mVq7ci7b91
9YwreQvwAzbX9SJLbF4GuDLh9VGF6sSrI34MhfINzpPvhay122D0cuWD8JodNyk1
1I7Rz99xJGmL3ifeb3NEG7shpbf7NjU1glncIn9HSxZLKGlms0AMg=
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.8 required=5.0 tests=AWL,BAYES_50,KAM_ASCII_DIVIDERS,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=fish, ash, 32m, grin
X-HELO: mout.kundenserver.de
Subject: Re: Subshell lost ANSI colors
To: cygwin AT cygwin DOT com
References: <4c9c752a-adbd-c0b1-35ed-59d293c395d8 AT yandex DOT ru>
From: Thomas Wolff <towo AT towo DOT net>
Message-ID: <58091AD9.6090504@towo.net>
Date: Thu, 20 Oct 2016 21:28:25 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <4c9c752a-adbd-c0b1-35ed-59d293c395d8@yandex.ru>
X-UI-Out-Filterresults: notjunk:1;V01:K0:pOhuYxeiAbM=:4+mRH+idfoS4bPKJdKOL9M ninJB8QWYUj41otJaIDWMIJYrhC0Cg/DQBUVVT0Yaa+zZ38wXJQ3xMj3eyVKmN3A9gsrS3FgB om4XNTXv+ObDZoS2AKK91PY7x7Owg9RafWpkomGCeWqEyg/g9WWpHHAIUy9M3xZqFj9Z7PSgA BBRL2fzRcXvmY5FW2v8YSkWjd5YDiVpgVp0u3OpOrB2lKJ9XGorgJtiTKB+dv8LGz+R07t5mF Cw8UZgUm2XjFmxME1WEfc9hK1GiIZ5c4JtVZa+daQoggBRfON7dB9ILyLYHuUK4Cjcwc+xDJJ CvZWM2FMxgRCEuXr45LPCjwtiDr08lMcIJKSrjrNCRce5I7KGVph2E0xWyXBMIoHwO8+d3+F2 imAFSPb9wVEswI8MlmSDw3cRD+AQJE3oBLxLM62bMff8lKHLbCjtKj9S2lSRc5ZJzW+gFGQ3Q 5IuT2/QfDIrkQBEp4t/SXA2jjpu2SCe7SAat9WyrvMC+W3Hq6hXJIh4S/9ytU3JNrW5UAcr/R E+igiZbRcS2OyFQE1iDxD1uE/SLYtnVTFD7F6H28NzYUeb3NveukRBS0SI6ZMPsoGybchaLNL +/5au7zRtOejQVnGj80s5yzv9yumEFlsy8SmlPrldI8+kPdIUYtozwDCYEJiGhtxoVt/UgQkc Rj5vv/XkevF4JGgebEVaYA272FBdexNf6IPA2yBN1qlwhHLUnytRxaR93GA5I8nmKeYrQw6uh TT0HziaG6IakBx2M
X-IsSubscribed: yes

Am 20.10.2016 um 21:06 schrieb Evgeny Grin:
> Hi!
>
> Noticed some time ago: most of subshells lost colors and prints some codes.
> Sample output:
> ====================================================================================
> User AT PcName ~
> $ dash
> \[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n$ exit
>
> User AT PcName ~
> $ ash
> \[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n$ exit
>
> User AT PcName ~
> $ zsh
> \[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ exit
>
> ...
> bash, sh and fish shells print colorized prompt.
> The rest prints ANSI codes.
> Same happens in Windows standard console.
>
> Am I doing incorrectly something?
Yes, you expect all shells to have the same capabilities. There are some 
prompt formatting codes in your PS1 that not all shells understand. You 
should set specific PS1 values in shell-specific profiles.
Thomas

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