Skip to content
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

Open
tdmalone opened this issue Oct 17, 2016 · 7 comments
Open

Repetition of questions on MINGW64 #432

tdmalone opened this issue Oct 17, 2016 · 7 comments

Comments

@tdmalone
Copy link

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:

image

However in MINGW64, each question is repeated - firstly with the default answer in brackets plus my answer, and then just with my answer:

image

(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)

@SBoudrias
Copy link
Owner

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.

@tdmalone
Copy link
Author

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!)

@tdmalone
Copy link
Author

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.

@grig0ry
Copy link

grig0ry commented Oct 24, 2016

@tdmalone set FORCE_COLOR property to TRUE (Properties of the system -> Additionally -> Environment variables)

@tdmalone
Copy link
Author

Thanks @Grigory90! That most definitely fixes the colour issue. The double questions with Inquirer still remain, though:

image

@grig0ry
Copy link

grig0ry commented Oct 25, 2016

@tdmalone Yes, double questions, this is problem :(

@kevinzliao
Copy link

Not sure if this is directly related, but in addition to the double questions, it doesn't seem like password inputs are hidden on MINGW64:

inquirer pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants