Closed berndb closed 8 years ago
Vorpal uses Inquirer.js inputs, so this would be a bug with Inquirer.js itself, I believe. Please file it there.
Inquirer does it just fine and shows *
s during typing.
From what I can see in the code, you intercept inquirer's key press events and then you output the characters directly to the screen. This is probably why the *
s don't show up.
Example with Inquirer@0.11.0:
var inquirer = require('inquirer');
inquirer.prompt([{
type: 'password',
name: 'password',
message: 'password: '
}], function () {
console.log(arguments);
});
password: ******************
Oh got it.
+1 on a fix for this please. Any ideas?
Fixed. See: https://github.com/dthree/vorpal/pull/85
:+1:
Until the return key is pressed, all password characters are shown as plain text:
After the return key was pressed, the characters are replaced with
*
symbols:As a sensitive user, I would like my password to be already hidden while typing.
*
symbols should be shown from the very beginning.Is there an option to achieve this?
Example code: