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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -