heapwolf / prompt-sync

a synchronous prompt for node.js
MIT License
217 stars 42 forks source link

prompt-sync takes a very long time(won't even accept input) to accept inputs #51

Open KodeSage opened 3 years ago

KodeSage commented 3 years ago

I Have Been trying to run a simple program

const prompt = require('prompt-sync')({sigint: true});

let me = prompt('Name :'); console.log(me);

Expected output Name : [input]

But it just gets stuck and hangs (have a glitch) at Name : and not accepting any input

Any Solution to this?

KodeSage commented 3 years ago

I am using Code Runner( an Extension to Log Native Js code out in the console);