Using Inquirer.js 0.9.0 and io.js 2.5.0 or Node 0.12.7 on Windows 10:
var inquirer = require("inquirer");
inquirer.prompt([
{
type: "list",
name: "exampleInput",
message: "Does this work for you?",
choices: [
"Yes",
"No",
"I can't tell!"
]
}
], function(answers) {
console.log("Done!");
});
The arrow keys won't move the menu, allowing selection of only the first choice.
Using Inquirer.js 0.9.0 and io.js 2.5.0 or Node 0.12.7 on Windows 10:
The arrow keys won't move the menu, allowing selection of only the first choice.