From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 83079 invoked by alias); 20 Oct 2016 19:28:27 -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 83004 invoked by uid 89); 20 Oct 2016 19:28:26 -0000 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 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (217.72.192.75) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Oct 2016 19:28:25 +0000 Received: from [192.168.178.45] ([95.91.213.245]) by mrelayeu.kundenserver.de (mreue102) with ESMTPSA (Nemesis) id 0MUnjI-1cR5LO0Yf6-00YC7s for ; Thu, 20 Oct 2016 21:28:22 +0200 Subject: Re: Subshell lost ANSI colors To: cygwin@cygwin.com References: <4c9c752a-adbd-c0b1-35ed-59d293c395d8@yandex.ru> From: Thomas Wolff Message-ID: <58091AD9.6090504@towo.net> Date: Thu, 20 Oct 2016 20:04:00 -0000 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> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2016-10/txt/msg00247.txt.bz2 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@PcName ~ > $ dash > \[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n$ exit > > User@PcName ~ > $ ash > \[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n$ exit > > User@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