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

First prompt on Windows is duplicating #369

Closed
Vasyl-Kobyletskiy opened this issue May 12, 2016 · 9 comments
Closed

First prompt on Windows is duplicating #369

Vasyl-Kobyletskiy opened this issue May 12, 2016 · 9 comments

Comments

@Vasyl-Kobyletskiy
Copy link

Vasyl-Kobyletskiy commented May 12, 2016

Good afternoon,

There is one issue. When we use inquirer latest version 1.1.2, user entrance of first prompt is duplicating.
Let me show you a simple example to demostrate it

var inquirer = require('inquirer');
inquirer.prompt([
{
name: 'name',
type: 'input',
'message': 'Name:'
},
{
name: 'surname',
type: 'input',
'message': 'Surname:'
},
{
name: 'password',
type: 'password',
message: 'Password:'
}
]).then(function(credentials){
console.log(credentials);
});

prnt_scr

Issue is that firsr prompt is duplicating. It was tested on Windows 8.1 x64, node v 5.0.0.
The same issue was detected when using older version of inquirer - 0.12.0.

@deep9
Copy link

deep9 commented May 26, 2016

I am using https://github.com/dylang/grunt-prompt, which uses inquirer@0.11.4, and the issue is the same.

When having just one prompt with pasword, it is only masked in the second line, so you can see what are you typing (password), then after pressing enter you see the line repeated, but with masked input.

Edit: Windows 10 cmd.exe, ConEmu with PyCmd

@dprothero
Copy link

Same issue on Windows 10 with Powershell

@dprothero
Copy link

I should say, I have both issues... first line is duplicated and if the first prompt is type password, you can see the input that is typed.

@nshtg
Copy link

nshtg commented Jul 9, 2016

I can confirm both issues!

@drewdotpro
Copy link

+1

1 similar comment
@fabiorogeriosj
Copy link

+1

@SBoudrias
Copy link
Owner

Some node version ship with a totally broken readline.

See nodejs/node#5384 for more details. You'll want to try again on latest stable Node.js version.

@Vasyl-Kobyletskiy
Copy link
Author

Thank you SBoudrias for your answer.

@dprothero
Copy link

Awesome SBoudrias, thanks so much.

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

7 participants