-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Repetition of questions on MINGW64 #432
Comments
Given it doesn't display color, I wonder if it supports ANSI code at all. If it doesn't, then I don't think it'd ever be possible for us to support this terminal. |
Thanks for the reply. I should've mentioned - it does support colour in other contexts (eg. git logs are coloured), but there seems to be an issue with chalk detecting that it supports colour so therefore chalk doesn't output colour (not being aware of the specifics behind it all I'm not sure whether this impacts you or not!) |
I found a related issue for chalk: chalk/supports-color#36. They eventually decided it's a wontfix, as I understand it they just couldn't reliably detect if it was a TTY or not. |
@tdmalone set FORCE_COLOR property to TRUE (Properties of the system -> Additionally -> Environment variables) |
Thanks @Grigory90! That most definitely fixes the colour issue. The double questions with Inquirer still remain, though: |
@tdmalone Yes, double questions, this is problem :( |
I know MINGW isn't on your list of supported consoles, but as you mentioned you're open to issues from non-supported consoles...
In MINGW32 things work great:
However in MINGW64, each question is repeated - firstly with the default answer in brackets plus my answer, and then just with my answer:
(ignore the colour differences, that's probably an issue with chalk).
If I had to hazard a guess, it's treating the modified output as a new line rather than the same line, and possibly needs just a carriage return but not a line feed? (if I have the terminology right)
The text was updated successfully, but these errors were encountered: