From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13099 invoked by alias); 20 Oct 2016 19:06:44 -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 13075 invoked by uid 89); 20 Oct 2016 19:06:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_40,FREEMAIL_FROM,KAM_ASCII_DIVIDERS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=fish, ash, Sample, 32m X-HELO: forward11j.cmail.yandex.net Received: from forward11j.cmail.yandex.net (HELO forward11j.cmail.yandex.net) (5.255.227.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 20 Oct 2016 19:06:33 +0000 Received: from smtp3h.mail.yandex.net (smtp3h.mail.yandex.net [84.201.186.20]) by forward11j.cmail.yandex.net (Yandex) with ESMTP id 65A0221355 for ; Thu, 20 Oct 2016 22:06:30 +0300 (MSK) Received: from smtp3h.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp3h.mail.yandex.net (Yandex) with ESMTP id 4B1D8440EBC for ; Thu, 20 Oct 2016 22:06:29 +0300 (MSK) Received: by smtp3h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id B51xOMmWhZ-6TS4OKQE; Thu, 20 Oct 2016 22:06:29 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) Authentication-Results: smtp3h.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0 To: cygwin@cygwin.com From: Evgeny Grin Subject: Subshell lost ANSI colors Openpgp: id=289FE99E138CF6D473A3F0CFBF7AC4A5EAC2BAF4 Message-ID: <4c9c752a-adbd-c0b1-35ed-59d293c395d8@yandex.ru> Date: Thu, 20 Oct 2016 19:28:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00246.txt.bz2 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 User@PcName ~ $ bash User@PcName ~ $ exit exit User@PcName ~ $ mksh \[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n$ exit User@PcName ~ $ fish Welcome to fish, the friendly interactive shell Type help for instructions on how to use fish User@PcName ~> exit User@PcName ~ $ sh User@PcName ~ $ exit exit User@PcName ~ $ ==================================================================================== Default shell started with installed desktop shortcut (mintty). bash, sh and fish shells print colorized prompt. The rest prints ANSI codes. Same happens in Windows standard console. Am I doing incorrectly something? -- Best Wishes, Evgeny Grin -- 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