-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic color detection issue on Windows with GIT Bash #163
Comments
Thank you for the report. I reproduced it but I don't find the cause yet, but I think it is not a gulp issue.
|
I found the cause of this issue. gulp-cli uses color-support to detect whether a terminal supports color output, and it checks whether stdout is a TTY by However, this We will not solve this issue in gulp-cli. In additon, Please work around this issue by using |
I cannot reproduce your findings. Using the same GIT Bash I encountered the issue with in the directory I cloned gulp-cli to (so I assume it's using the same version of color-support):
Ironically, the output was colored. I had a look at your code in |
@Neonit Use not |
Five minutes ago I didn't even know gulp had color support. I found this by running gulp manually:
node node_modules/gulp/bin/gulp.js
This gave me a colored output on my GIT Bash on Windows 7 x64.
The bash itself reports the following version:
Just running
gulp
(using the globally installed gulp-cli 2.0.1) does not give me a colored output. It works when I add--color
manually. I have not installed gulp globally. My local gulp version is 4.0.0.Further I'm using Node 10.0.0 and npm 5.6.0.
I would have tried to workaround this by adding the color flag to the global gulp-cli configuration, but the documentation states there is no color flag for the configuration file.
The text was updated successfully, but these errors were encountered: