node.js - Prompt module in NodeJS repeating the input -


I am making an application using Nodes and its one CLI application; To get input from the user, I am using the "quick" module I can use it, but when typing in the prompt of the prompt, each letter is being repeated, though the output is OK! Code is below Please help.

  Prompt. Start (); Prompt.get ({properties: {name: {description: "What is your name?"} Magenta}}}, function (mistake, result) {console.log ("You said your name is:" Saini + Results Name.cyan);});  

Image: added

< P FWIW If you need to give simple pointers, then you can use the method of the built-in module (which does not release double output).
  var readline = required ('readline'); Var rli = readline.create interface ({input: process.stdin, output: process.stdout}); Rli.question ('what is your name?', Function (answer) {console.log ('you have given your name:' + reply); rli.close ();});  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -