This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Subshell lost ANSI colors
- From: Evgeny Grin <k2k at yandex dot ru>
- To: cygwin at cygwin dot com
- Date: Thu, 20 Oct 2016 22:06:25 +0300
- Subject: Subshell lost ANSI colors
- Authentication-results: sourceware.org; auth=none
- Authentication-results: smtp3h.mail.yandex.net; dkim=pass header.i=@yandex.ru
- Openpgp: id=289FE99E138CF6D473A3F0CFBF7AC4A5EAC2BAF4
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