public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Evgeny Grin <k2k@yandex.ru>
To: cygwin@cygwin.com
Subject: Subshell lost ANSI colors
Date: Thu, 20 Oct 2016 19:28:00 -0000	[thread overview]
Message-ID: <4c9c752a-adbd-c0b1-35ed-59d293c395d8@yandex.ru> (raw)

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

             reply	other threads:[~2016-10-20 19:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-20 19:28 Evgeny Grin [this message]
2016-10-20 20:04 ` Thomas Wolff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4c9c752a-adbd-c0b1-35ed-59d293c395d8@yandex.ru \
    --to=k2k@yandex.ru \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).