-
-
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
Support mintty on MINGW64 #621
Comments
I don't have issues with mintty on Windows. |
I can confirm that in mintty (that comes with git for windows, no additional configuration) moving the cursor with arrows in prompts doesn't work at all. mintty tries to emulate xterm terminal, so I'd guess there would be some problems with xterm as well? |
So, more info on this. When script with inquirer prompt in it called directly - it works perfectly fine in mintty too. But if the same script called via |
I can second what @sunrize531 mentioned above. If Inquirer is using |
using this on Git Bash for Windows also duplicates the questions, making the library look extremely buggy e.g.
|
looks like this is related to #432 |
I noticed that Inquirer was NOT duplicating text in a simple test repository, but was duplicating text in my real app, so I did some investigating. The issue seems to be because:
Essentially, this command ends up up being: When I take off the quotation marks around the "node" command, the bug seems to go away, as demonstrated by the following screenshot: Pardon my French, but why the fuck is this happening? Why does putting quotation marks around node change the behavior of the resulting program? And is there some kind of fix that I can include in my JavaScript code to work around this problem? |
Running |
Anyone narrowed down exactly what happens and how to fix/run the script with proper streams and/or interactive tty? I'd be happy to document this in the README to help anyone running into this issue in the future. |
Mintty is installed along with Git for Windows.
Is there any chance to support mintty?
The text was updated successfully, but these errors were encountered: